Skip to content

Commit f3d731a

Browse files
author
Pete Bishop
committed
Implement documentation for cache:clear
Relates to https://github.com/PeteBishwhip/native-cli/issues/11
1 parent 952b620 commit f3d731a

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

Writerside/n.tree

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
</toc-element>
1414
<toc-element toc-title="Commands">
1515
<toc-element topic="New.md"/>
16+
<toc-element topic="cache-clear.md"/>
1617
<toc-element topic="check-update.md"/>
1718
<toc-element topic="update.md"/>
1819
</toc-element>

Writerside/topics/cache-clear.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# cache:clear
2+
3+
NativeCLI uses some files to cache data that does not need to be retrieved on every invocation.
4+
Sometimes, it may be preferable to clear these caches to ensure that the latest data is used.
5+
6+
<tip>
7+
This command is only available in NativeCLI version 1.0.0-rc.1 and later.
8+
</tip>
9+
10+
## Command
11+
12+
Syntax:
13+
14+
```shell
15+
nativecli cache:clear [OPTIONS]
16+
```
17+
18+
## Options
19+
20+
Describe what each option is used for:
21+
22+
-c, --cache
23+
: Select a specific cache to clear. If not specified, all caches will be cleared.
24+
25+
-n, --non-interactive
26+
: Clears the specified caches without prompting for confirmation.
27+
28+
## Available Caches
29+
30+
A cache is only considered "available" once it has data within. If the cache doesn't yet exist, you'll receive a
31+
message indicating that the cache is empty.
32+
33+
version
34+
: The latest versions of NativeCLI and NativePHP that are available. This cache expires hourly.

0 commit comments

Comments
 (0)