Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarco Sirabella <marco@sirabella.org>2021-04-19 00:20:07 +0300
committerGar <gar+gh@danger.computer>2021-05-06 20:26:36 +0300
commit701627c5169934e59da2959d76a49c77278cc9dc (patch)
tree94bbe1292b16829cc467fc89ff61debf268494e4 /docs
parent99ff40dff5e5e55a5d5f045ba90e76c08174ca38 (diff)
feat(cache): Allow `add` to accept multiple specs
This is a backwards incompatible change to the undocumented `cache add pkg version`, but Motivations for this can be found here: https://github.com/npm/cli/pull/2976#issuecomment-811511134 Signed-off-by: Marco Sirabella <marco@sirabella.org> PR-URL: https://github.com/npm/cli/pull/3098 Credit: @mjsir911 Close: #3098 Reviewed-by: @wraithgar
Diffstat (limited to 'docs')
-rw-r--r--docs/content/commands/npm-cache.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/commands/npm-cache.md b/docs/content/commands/npm-cache.md
index bcc2989b7..0bbb2756a 100644
--- a/docs/content/commands/npm-cache.md
+++ b/docs/content/commands/npm-cache.md
@@ -7,10 +7,10 @@ description: Manipulates packages cache
### Synopsis
```bash
-npm cache add <tarball file>
-npm cache add <folder>
-npm cache add <tarball url>
-npm cache add <name>@<version>
+npm cache add <tarball file>...
+npm cache add <folder>...
+npm cache add <tarball url>...
+npm cache add <name>@<version>...
npm cache clean
aliases: npm cache clear, npm cache rm
@@ -25,7 +25,7 @@ Note: This command is unaware of workspaces.
Used to add, list, or clean the npm cache folder.
* add:
- Add the specified package to the local cache. This command is primarily
+ Add the specified packages to the local cache. This command is primarily
intended to be used internally by npm, but it can provide a way to
add data to the local installation cache explicitly.