You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cache.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ cache <option>
21
21
22
22
`cache` supports the following options:
23
23
24
-
-`cache --restore`: Restores _all_folders currently cached from the current working directory. (support soon coming to be able to restore a specific folder or set of folders by name, but not currently available).
24
+
-`cache --restore [<folder 1> <...>]`: Restores folders cached from the current working directory. If no folder names are given as arguments, it will restore _all_folders in the cache for the current directory.
25
25
-`cache --show`: Lists the cached folders from the current working directory and the timestamp of last caching.
26
26
-`cache --clear`: Permanently deletes all the cached folders from the current working directory. If specified `--clear all` then **_all_** of the cached folders from _every_ workspace will be removed.
27
27
@@ -43,7 +43,7 @@ We can now do whatever tasks need to be done without that folder there. When we
43
43
are ready to have the node_modules back in the repo, we can simply invoke:
44
44
45
45
```sh
46
-
cache --restore
46
+
cache --restore node_modules
47
47
```
48
48
49
49
This is _much_ quicker than running `npm install`, and a lot more efficient on
0 commit comments