CLI documentation update from CI

npm CLI robot committed Feb 11, 2026 at 19:04 UTC 90be62d022cbc6a54b0e37dc1133969ccd18e703
94 files changed +563 -1257
cli-cache.json
+1 -1
@@ -2,5 +2,5 @@
2 "v8": "aa8fff11cdab94fff1a2160ee5241f5f4632e96b",
3 "v9": "64763a341e7aa5b456e696f956759bf9b3440dc1",
4 "v10": "6755ca2d5301b079f9e2581fc72ba2a612171364",
5 - "v11": "aae84bf5a90bb42599b27631734a9899735d4016"
5 + "v11": "cf56a1e4df9c8ae7b7e9752437d827a183e4040e"
6 }
\ No newline at end of file
content/cli/v11/commands/index.mdx
-13
@@ -5,26 +5,13 @@ github_repo: npm/cli
5 github_branch: latest
6 github_path: docs/lib/content/nav.yml
7 redirect_from:
8 - - /cli-commands
9 - - /cli-commands/index
10 - - /cli-documentation/cli
11 - - /cli-documentation/cli-commands
12 - - /cli-documentation/cli-commands/index
13 - - /cli-documentation/commands
14 - - /cli-documentation/commands/index
8 - /cli-documentation/v11/cli-commands
9 - /cli-documentation/v11/cli-commands/index
10 - /cli-documentation/v11/commands
11 - /cli-documentation/v11/commands/index
19 - - /cli/cli-commands
20 - - /cli/cli-commands/index
21 - - /cli/commands
22 - - /cli/commands/index
12 - /cli/v11/cli-commands
13 - /cli/v11/cli-commands/index
14 - /cli/v11/commands/index
26 - - /commands
27 - - /commands/index
15 ---
16
17 <Index depth="1" />
content/cli/v11/commands/npm-access.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-access.md
8 redirect_from:
9 - - /cli-commands/access
10 - - /cli-commands/npm-access
11 - - /cli-documentation/access
12 - - /cli-documentation/cli-commands/access
13 - - /cli-documentation/cli-commands/npm-access
14 - - /cli-documentation/commands/access
15 - - /cli-documentation/commands/npm-access
16 - - /cli-documentation/npm-access
9 - /cli-documentation/v11/access
10 - /cli-documentation/v11/cli-commands/access
11 - /cli-documentation/v11/cli-commands/npm-access
12 - /cli-documentation/v11/commands/access
13 - /cli-documentation/v11/commands/npm-access
14 - /cli-documentation/v11/npm-access
23 - - /cli/access
24 - - /cli/cli-commands/access
25 - - /cli/cli-commands/npm-access
26 - - /cli/commands/access
27 - - /cli/commands/npm-access
28 - - /cli/npm-access
15 - /cli/v11/access
16 - /cli/v11/cli-commands/access
17 - /cli/v11/cli-commands/npm-access
18 - /cli/v11/commands/access
19 - /cli/v11/npm-access
34 - - /commands/access
35 - - /commands/npm-access
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-adduser.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-adduser.md
8 redirect_from:
9 - - /cli-commands/adduser
10 - - /cli-commands/npm-adduser
11 - - /cli-documentation/adduser
12 - - /cli-documentation/cli-commands/adduser
13 - - /cli-documentation/cli-commands/npm-adduser
14 - - /cli-documentation/commands/adduser
15 - - /cli-documentation/commands/npm-adduser
16 - - /cli-documentation/npm-adduser
9 - /cli-documentation/v11/adduser
10 - /cli-documentation/v11/cli-commands/adduser
11 - /cli-documentation/v11/cli-commands/npm-adduser
12 - /cli-documentation/v11/commands/adduser
13 - /cli-documentation/v11/commands/npm-adduser
14 - /cli-documentation/v11/npm-adduser
23 - - /cli/adduser
24 - - /cli/cli-commands/adduser
25 - - /cli/cli-commands/npm-adduser
26 - - /cli/commands/adduser
27 - - /cli/commands/npm-adduser
28 - - /cli/npm-adduser
15 - /cli/v11/adduser
16 - /cli/v11/cli-commands/adduser
17 - /cli/v11/cli-commands/npm-adduser
18 - /cli/v11/commands/adduser
19 - /cli/v11/npm-adduser
34 - - /commands/adduser
35 - - /commands/npm-adduser
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-audit.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-audit.md
8 redirect_from:
9 - - /cli-commands/audit
10 - - /cli-commands/npm-audit
11 - - /cli-documentation/audit
12 - - /cli-documentation/cli-commands/audit
13 - - /cli-documentation/cli-commands/npm-audit
14 - - /cli-documentation/commands/audit
15 - - /cli-documentation/commands/npm-audit
16 - - /cli-documentation/npm-audit
9 - /cli-documentation/v11/audit
10 - /cli-documentation/v11/cli-commands/audit
11 - /cli-documentation/v11/cli-commands/npm-audit
12 - /cli-documentation/v11/commands/audit
13 - /cli-documentation/v11/commands/npm-audit
14 - /cli-documentation/v11/npm-audit
23 - - /cli/audit
24 - - /cli/cli-commands/audit
25 - - /cli/cli-commands/npm-audit
26 - - /cli/commands/audit
27 - - /cli/commands/npm-audit
28 - - /cli/npm-audit
15 - /cli/v11/audit
16 - /cli/v11/cli-commands/audit
17 - /cli/v11/cli-commands/npm-audit
18 - /cli/v11/commands/audit
19 - /cli/v11/npm-audit
34 - - /commands/audit
35 - - /commands/npm-audit
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-bugs.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-bugs.md
8 redirect_from:
9 - - /cli-commands/bugs
10 - - /cli-commands/npm-bugs
11 - - /cli-documentation/bugs
12 - - /cli-documentation/cli-commands/bugs
13 - - /cli-documentation/cli-commands/npm-bugs
14 - - /cli-documentation/commands/bugs
15 - - /cli-documentation/commands/npm-bugs
16 - - /cli-documentation/npm-bugs
9 - /cli-documentation/v11/bugs
10 - /cli-documentation/v11/cli-commands/bugs
11 - /cli-documentation/v11/cli-commands/npm-bugs
12 - /cli-documentation/v11/commands/bugs
13 - /cli-documentation/v11/commands/npm-bugs
14 - /cli-documentation/v11/npm-bugs
23 - - /cli/bugs
24 - - /cli/cli-commands/bugs
25 - - /cli/cli-commands/npm-bugs
26 - - /cli/commands/bugs
27 - - /cli/commands/npm-bugs
28 - - /cli/npm-bugs
15 - /cli/v11/bugs
16 - /cli/v11/cli-commands/bugs
17 - /cli/v11/cli-commands/npm-bugs
18 - /cli/v11/commands/bugs
19 - /cli/v11/npm-bugs
34 - - /commands/bugs
35 - - /commands/npm-bugs
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-cache.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-cache.md
8 redirect_from:
9 - - /cli-commands/cache
10 - - /cli-commands/npm-cache
11 - - /cli-documentation/cache
12 - - /cli-documentation/cli-commands/cache
13 - - /cli-documentation/cli-commands/npm-cache
14 - - /cli-documentation/commands/cache
15 - - /cli-documentation/commands/npm-cache
16 - - /cli-documentation/npm-cache
9 - /cli-documentation/v11/cache
10 - /cli-documentation/v11/cli-commands/cache
11 - /cli-documentation/v11/cli-commands/npm-cache
12 - /cli-documentation/v11/commands/cache
13 - /cli-documentation/v11/commands/npm-cache
14 - /cli-documentation/v11/npm-cache
23 - - /cli/cache
24 - - /cli/cli-commands/cache
25 - - /cli/cli-commands/npm-cache
26 - - /cli/commands/cache
27 - - /cli/commands/npm-cache
28 - - /cli/npm-cache
15 - /cli/v11/cache
16 - /cli/v11/cli-commands/cache
17 - /cli/v11/cli-commands/npm-cache
18 - /cli/v11/commands/cache
19 - /cli/v11/npm-cache
34 - - /commands/cache
35 - - /commands/npm-cache
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-ci.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-ci.md
8 redirect_from:
9 - - /cli-commands/ci
10 - - /cli-commands/npm-ci
11 - - /cli-documentation/ci
12 - - /cli-documentation/cli-commands/ci
13 - - /cli-documentation/cli-commands/npm-ci
14 - - /cli-documentation/commands/ci
15 - - /cli-documentation/commands/npm-ci
16 - - /cli-documentation/npm-ci
9 - /cli-documentation/v11/ci
10 - /cli-documentation/v11/cli-commands/ci
11 - /cli-documentation/v11/cli-commands/npm-ci
12 - /cli-documentation/v11/commands/ci
13 - /cli-documentation/v11/commands/npm-ci
14 - /cli-documentation/v11/npm-ci
23 - - /cli/ci
24 - - /cli/cli-commands/ci
25 - - /cli/cli-commands/npm-ci
26 - - /cli/commands/ci
27 - - /cli/commands/npm-ci
28 - - /cli/npm-ci
15 - /cli/v11/ci
16 - /cli/v11/cli-commands/ci
17 - /cli/v11/cli-commands/npm-ci
18 - /cli/v11/commands/ci
19 - /cli/v11/npm-ci
34 - - /commands/ci
35 - - /commands/npm-ci
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-completion.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-completion.md
8 redirect_from:
9 - - /cli-commands/completion
10 - - /cli-commands/npm-completion
11 - - /cli-documentation/cli-commands/completion
12 - - /cli-documentation/cli-commands/npm-completion
13 - - /cli-documentation/commands/completion
14 - - /cli-documentation/commands/npm-completion
15 - - /cli-documentation/completion
16 - - /cli-documentation/npm-completion
9 - /cli-documentation/v11/cli-commands/completion
10 - /cli-documentation/v11/cli-commands/npm-completion
11 - /cli-documentation/v11/commands/completion
12 - /cli-documentation/v11/commands/npm-completion
13 - /cli-documentation/v11/completion
14 - /cli-documentation/v11/npm-completion
23 - - /cli/cli-commands/completion
24 - - /cli/cli-commands/npm-completion
25 - - /cli/commands/completion
26 - - /cli/commands/npm-completion
27 - - /cli/completion
28 - - /cli/npm-completion
15 - /cli/v11/cli-commands/completion
16 - /cli/v11/cli-commands/npm-completion
17 - /cli/v11/commands/completion
18 - /cli/v11/completion
19 - /cli/v11/npm-completion
34 - - /commands/completion
35 - - /commands/npm-completion
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-config.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-config.md
8 redirect_from:
9 - - /cli-commands/config
10 - - /cli-commands/npm-config
11 - - /cli-documentation/cli-commands/config
12 - - /cli-documentation/cli-commands/npm-config
13 - - /cli-documentation/commands/config
14 - - /cli-documentation/commands/npm-config
15 - - /cli-documentation/config
16 - - /cli-documentation/npm-config
9 - /cli-documentation/v11/cli-commands/config
10 - /cli-documentation/v11/cli-commands/npm-config
11 - /cli-documentation/v11/commands/config
12 - /cli-documentation/v11/commands/npm-config
13 - /cli-documentation/v11/config
14 - /cli-documentation/v11/npm-config
23 - - /cli/cli-commands/config
24 - - /cli/cli-commands/npm-config
25 - - /cli/commands/config
26 - - /cli/commands/npm-config
27 - - /cli/config
28 - - /cli/npm-config
15 - /cli/v11/cli-commands/config
16 - /cli/v11/cli-commands/npm-config
17 - /cli/v11/commands/config
18 - /cli/v11/config
19 - /cli/v11/npm-config
34 - - /commands/config
35 - - /commands/npm-config
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-dedupe.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-dedupe.md
8 redirect_from:
9 - - /cli-commands/dedupe
10 - - /cli-commands/npm-dedupe
11 - - /cli-documentation/cli-commands/dedupe
12 - - /cli-documentation/cli-commands/npm-dedupe
13 - - /cli-documentation/commands/dedupe
14 - - /cli-documentation/commands/npm-dedupe
15 - - /cli-documentation/dedupe
16 - - /cli-documentation/npm-dedupe
9 - /cli-documentation/v11/cli-commands/dedupe
10 - /cli-documentation/v11/cli-commands/npm-dedupe
11 - /cli-documentation/v11/commands/dedupe
12 - /cli-documentation/v11/commands/npm-dedupe
13 - /cli-documentation/v11/dedupe
14 - /cli-documentation/v11/npm-dedupe
23 - - /cli/cli-commands/dedupe
24 - - /cli/cli-commands/npm-dedupe
25 - - /cli/commands/dedupe
26 - - /cli/commands/npm-dedupe
27 - - /cli/dedupe
28 - - /cli/npm-dedupe
15 - /cli/v11/cli-commands/dedupe
16 - /cli/v11/cli-commands/npm-dedupe
17 - /cli/v11/commands/dedupe
18 - /cli/v11/dedupe
19 - /cli/v11/npm-dedupe
34 - - /commands/dedupe
35 - - /commands/npm-dedupe
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-deprecate.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-deprecate.md
8 redirect_from:
9 - - /cli-commands/deprecate
10 - - /cli-commands/npm-deprecate
11 - - /cli-documentation/cli-commands/deprecate
12 - - /cli-documentation/cli-commands/npm-deprecate
13 - - /cli-documentation/commands/deprecate
14 - - /cli-documentation/commands/npm-deprecate
15 - - /cli-documentation/deprecate
16 - - /cli-documentation/npm-deprecate
9 - /cli-documentation/v11/cli-commands/deprecate
10 - /cli-documentation/v11/cli-commands/npm-deprecate
11 - /cli-documentation/v11/commands/deprecate
12 - /cli-documentation/v11/commands/npm-deprecate
13 - /cli-documentation/v11/deprecate
14 - /cli-documentation/v11/npm-deprecate
23 - - /cli/cli-commands/deprecate
24 - - /cli/cli-commands/npm-deprecate
25 - - /cli/commands/deprecate
26 - - /cli/commands/npm-deprecate
27 - - /cli/deprecate
28 - - /cli/npm-deprecate
15 - /cli/v11/cli-commands/deprecate
16 - /cli/v11/cli-commands/npm-deprecate
17 - /cli/v11/commands/deprecate
18 - /cli/v11/deprecate
19 - /cli/v11/npm-deprecate
34 - - /commands/deprecate
35 - - /commands/npm-deprecate
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-diff.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-diff.md
8 redirect_from:
9 - - /cli-commands/diff
10 - - /cli-commands/npm-diff
11 - - /cli-documentation/cli-commands/diff
12 - - /cli-documentation/cli-commands/npm-diff
13 - - /cli-documentation/commands/diff
14 - - /cli-documentation/commands/npm-diff
15 - - /cli-documentation/diff
16 - - /cli-documentation/npm-diff
9 - /cli-documentation/v11/cli-commands/diff
10 - /cli-documentation/v11/cli-commands/npm-diff
11 - /cli-documentation/v11/commands/diff
12 - /cli-documentation/v11/commands/npm-diff
13 - /cli-documentation/v11/diff
14 - /cli-documentation/v11/npm-diff
23 - - /cli/cli-commands/diff
24 - - /cli/cli-commands/npm-diff
25 - - /cli/commands/diff
26 - - /cli/commands/npm-diff
27 - - /cli/diff
28 - - /cli/npm-diff
15 - /cli/v11/cli-commands/diff
16 - /cli/v11/cli-commands/npm-diff
17 - /cli/v11/commands/diff
18 - /cli/v11/diff
19 - /cli/v11/npm-diff
34 - - /commands/diff
35 - - /commands/npm-diff
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-dist-tag.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-dist-tag.md
8 redirect_from:
9 - - /cli-commands/dist-tag
10 - - /cli-commands/npm-dist-tag
11 - - /cli-documentation/cli-commands/dist-tag
12 - - /cli-documentation/cli-commands/npm-dist-tag
13 - - /cli-documentation/commands/dist-tag
14 - - /cli-documentation/commands/npm-dist-tag
15 - - /cli-documentation/dist-tag
16 - - /cli-documentation/npm-dist-tag
9 - /cli-documentation/v11/cli-commands/dist-tag
10 - /cli-documentation/v11/cli-commands/npm-dist-tag
11 - /cli-documentation/v11/commands/dist-tag
12 - /cli-documentation/v11/commands/npm-dist-tag
13 - /cli-documentation/v11/dist-tag
14 - /cli-documentation/v11/npm-dist-tag
23 - - /cli/cli-commands/dist-tag
24 - - /cli/cli-commands/npm-dist-tag
25 - - /cli/commands/dist-tag
26 - - /cli/commands/npm-dist-tag
27 - - /cli/dist-tag
28 - - /cli/npm-dist-tag
15 - /cli/v11/cli-commands/dist-tag
16 - /cli/v11/cli-commands/npm-dist-tag
17 - /cli/v11/commands/dist-tag
18 - /cli/v11/dist-tag
19 - /cli/v11/npm-dist-tag
34 - - /commands/dist-tag
35 - - /commands/npm-dist-tag
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-docs.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-docs.md
8 redirect_from:
9 - - /cli-commands/docs
10 - - /cli-commands/npm-docs
11 - - /cli-documentation/cli-commands/docs
12 - - /cli-documentation/cli-commands/npm-docs
13 - - /cli-documentation/commands/docs
14 - - /cli-documentation/commands/npm-docs
15 - - /cli-documentation/docs
16 - - /cli-documentation/npm-docs
9 - /cli-documentation/v11/cli-commands/docs
10 - /cli-documentation/v11/cli-commands/npm-docs
11 - /cli-documentation/v11/commands/docs
12 - /cli-documentation/v11/commands/npm-docs
13 - /cli-documentation/v11/docs
14 - /cli-documentation/v11/npm-docs
23 - - /cli/cli-commands/docs
24 - - /cli/cli-commands/npm-docs
25 - - /cli/commands/docs
26 - - /cli/commands/npm-docs
27 - - /cli/docs
28 - - /cli/npm-docs
15 - /cli/v11/cli-commands/docs
16 - /cli/v11/cli-commands/npm-docs
17 - /cli/v11/commands/docs
18 - /cli/v11/docs
19 - /cli/v11/npm-docs
34 - - /commands/docs
35 - - /commands/npm-docs
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-doctor.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-doctor.md
8 redirect_from:
9 - - /cli-commands/doctor
10 - - /cli-commands/npm-doctor
11 - - /cli-documentation/cli-commands/doctor
12 - - /cli-documentation/cli-commands/npm-doctor
13 - - /cli-documentation/commands/doctor
14 - - /cli-documentation/commands/npm-doctor
15 - - /cli-documentation/doctor
16 - - /cli-documentation/npm-doctor
9 - /cli-documentation/v11/cli-commands/doctor
10 - /cli-documentation/v11/cli-commands/npm-doctor
11 - /cli-documentation/v11/commands/doctor
12 - /cli-documentation/v11/commands/npm-doctor
13 - /cli-documentation/v11/doctor
14 - /cli-documentation/v11/npm-doctor
23 - - /cli/cli-commands/doctor
24 - - /cli/cli-commands/npm-doctor
25 - - /cli/commands/doctor
26 - - /cli/commands/npm-doctor
27 - - /cli/doctor
28 - - /cli/npm-doctor
15 - /cli/v11/cli-commands/doctor
16 - /cli/v11/cli-commands/npm-doctor
17 - /cli/v11/commands/doctor
18 - /cli/v11/doctor
19 - /cli/v11/npm-doctor
34 - - /commands/doctor
35 - - /commands/npm-doctor
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-edit.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-edit.md
8 redirect_from:
9 - - /cli-commands/edit
10 - - /cli-commands/npm-edit
11 - - /cli-documentation/cli-commands/edit
12 - - /cli-documentation/cli-commands/npm-edit
13 - - /cli-documentation/commands/edit
14 - - /cli-documentation/commands/npm-edit
15 - - /cli-documentation/edit
16 - - /cli-documentation/npm-edit
9 - /cli-documentation/v11/cli-commands/edit
10 - /cli-documentation/v11/cli-commands/npm-edit
11 - /cli-documentation/v11/commands/edit
12 - /cli-documentation/v11/commands/npm-edit
13 - /cli-documentation/v11/edit
14 - /cli-documentation/v11/npm-edit
23 - - /cli/cli-commands/edit
24 - - /cli/cli-commands/npm-edit
25 - - /cli/commands/edit
26 - - /cli/commands/npm-edit
27 - - /cli/edit
28 - - /cli/npm-edit
15 - /cli/v11/cli-commands/edit
16 - /cli/v11/cli-commands/npm-edit
17 - /cli/v11/commands/edit
18 - /cli/v11/edit
19 - /cli/v11/npm-edit
34 - - /commands/edit
35 - - /commands/npm-edit
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-exec.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-exec.md
8 redirect_from:
9 - - /cli-commands/exec
10 - - /cli-commands/npm-exec
11 - - /cli-documentation/cli-commands/exec
12 - - /cli-documentation/cli-commands/npm-exec
13 - - /cli-documentation/commands/exec
14 - - /cli-documentation/commands/npm-exec
15 - - /cli-documentation/exec
16 - - /cli-documentation/npm-exec
9 - /cli-documentation/v11/cli-commands/exec
10 - /cli-documentation/v11/cli-commands/npm-exec
11 - /cli-documentation/v11/commands/exec
12 - /cli-documentation/v11/commands/npm-exec
13 - /cli-documentation/v11/exec
14 - /cli-documentation/v11/npm-exec
23 - - /cli/cli-commands/exec
24 - - /cli/cli-commands/npm-exec
25 - - /cli/commands/exec
26 - - /cli/commands/npm-exec
27 - - /cli/exec
28 - - /cli/npm-exec
15 - /cli/v11/cli-commands/exec
16 - /cli/v11/cli-commands/npm-exec
17 - /cli/v11/commands/exec
18 - /cli/v11/exec
19 - /cli/v11/npm-exec
34 - - /commands/exec
35 - - /commands/npm-exec
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-explain.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-explain.md
8 redirect_from:
9 - - /cli-commands/explain
10 - - /cli-commands/npm-explain
11 - - /cli-documentation/cli-commands/explain
12 - - /cli-documentation/cli-commands/npm-explain
13 - - /cli-documentation/commands/explain
14 - - /cli-documentation/commands/npm-explain
15 - - /cli-documentation/explain
16 - - /cli-documentation/npm-explain
9 - /cli-documentation/v11/cli-commands/explain
10 - /cli-documentation/v11/cli-commands/npm-explain
11 - /cli-documentation/v11/commands/explain
12 - /cli-documentation/v11/commands/npm-explain
13 - /cli-documentation/v11/explain
14 - /cli-documentation/v11/npm-explain
23 - - /cli/cli-commands/explain
24 - - /cli/cli-commands/npm-explain
25 - - /cli/commands/explain
26 - - /cli/commands/npm-explain
27 - - /cli/explain
28 - - /cli/npm-explain
15 - /cli/v11/cli-commands/explain
16 - /cli/v11/cli-commands/npm-explain
17 - /cli/v11/commands/explain
18 - /cli/v11/explain
19 - /cli/v11/npm-explain
34 - - /commands/explain
35 - - /commands/npm-explain
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-explore.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-explore.md
8 redirect_from:
9 - - /cli-commands/explore
10 - - /cli-commands/npm-explore
11 - - /cli-documentation/cli-commands/explore
12 - - /cli-documentation/cli-commands/npm-explore
13 - - /cli-documentation/commands/explore
14 - - /cli-documentation/commands/npm-explore
15 - - /cli-documentation/explore
16 - - /cli-documentation/npm-explore
9 - /cli-documentation/v11/cli-commands/explore
10 - /cli-documentation/v11/cli-commands/npm-explore
11 - /cli-documentation/v11/commands/explore
12 - /cli-documentation/v11/commands/npm-explore
13 - /cli-documentation/v11/explore
14 - /cli-documentation/v11/npm-explore
23 - - /cli/cli-commands/explore
24 - - /cli/cli-commands/npm-explore
25 - - /cli/commands/explore
26 - - /cli/commands/npm-explore
27 - - /cli/explore
28 - - /cli/npm-explore
15 - /cli/v11/cli-commands/explore
16 - /cli/v11/cli-commands/npm-explore
17 - /cli/v11/commands/explore
18 - /cli/v11/explore
19 - /cli/v11/npm-explore
34 - - /commands/explore
35 - - /commands/npm-explore
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-find-dupes.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-find-dupes.md
8 redirect_from:
9 - - /cli-commands/find-dupes
10 - - /cli-commands/npm-find-dupes
11 - - /cli-documentation/cli-commands/find-dupes
12 - - /cli-documentation/cli-commands/npm-find-dupes
13 - - /cli-documentation/commands/find-dupes
14 - - /cli-documentation/commands/npm-find-dupes
15 - - /cli-documentation/find-dupes
16 - - /cli-documentation/npm-find-dupes
9 - /cli-documentation/v11/cli-commands/find-dupes
10 - /cli-documentation/v11/cli-commands/npm-find-dupes
11 - /cli-documentation/v11/commands/find-dupes
12 - /cli-documentation/v11/commands/npm-find-dupes
13 - /cli-documentation/v11/find-dupes
14 - /cli-documentation/v11/npm-find-dupes
23 - - /cli/cli-commands/find-dupes
24 - - /cli/cli-commands/npm-find-dupes
25 - - /cli/commands/find-dupes
26 - - /cli/commands/npm-find-dupes
27 - - /cli/find-dupes
28 - - /cli/npm-find-dupes
15 - /cli/v11/cli-commands/find-dupes
16 - /cli/v11/cli-commands/npm-find-dupes
17 - /cli/v11/commands/find-dupes
18 - /cli/v11/find-dupes
19 - /cli/v11/npm-find-dupes
34 - - /commands/find-dupes
35 - - /commands/npm-find-dupes
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-fund.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-fund.md
8 redirect_from:
9 - - /cli-commands/fund
10 - - /cli-commands/npm-fund
11 - - /cli-documentation/cli-commands/fund
12 - - /cli-documentation/cli-commands/npm-fund
13 - - /cli-documentation/commands/fund
14 - - /cli-documentation/commands/npm-fund
15 - - /cli-documentation/fund
16 - - /cli-documentation/npm-fund
9 - /cli-documentation/v11/cli-commands/fund
10 - /cli-documentation/v11/cli-commands/npm-fund
11 - /cli-documentation/v11/commands/fund
12 - /cli-documentation/v11/commands/npm-fund
13 - /cli-documentation/v11/fund
14 - /cli-documentation/v11/npm-fund
23 - - /cli/cli-commands/fund
24 - - /cli/cli-commands/npm-fund
25 - - /cli/commands/fund
26 - - /cli/commands/npm-fund
27 - - /cli/fund
28 - - /cli/npm-fund
15 - /cli/v11/cli-commands/fund
16 - /cli/v11/cli-commands/npm-fund
17 - /cli/v11/commands/fund
18 - /cli/v11/fund
19 - /cli/v11/npm-fund
34 - - /commands/fund
35 - - /commands/npm-fund
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-get.mdx new
+45
@@ -0,0 +1,45 @@
1 +---
2 +title: npm-get
3 +section: 1
4 +description: Get a value from the npm configuration
5 +github_repo: npm/cli
6 +github_branch: latest
7 +github_path: docs/lib/content/commands/npm-get.md
8 +redirect_from:
9 + - /cli-documentation/v11/cli-commands/get
10 + - /cli-documentation/v11/cli-commands/npm-get
11 + - /cli-documentation/v11/commands/get
12 + - /cli-documentation/v11/commands/npm-get
13 + - /cli-documentation/v11/get
14 + - /cli-documentation/v11/npm-get
15 + - /cli/v11/cli-commands/get
16 + - /cli/v11/cli-commands/npm-get
17 + - /cli/v11/commands/get
18 + - /cli/v11/get
19 + - /cli/v11/npm-get
20 +---
21 +
22 +### Synopsis
23 +
24 +```bash
25 +npm get [<key> ...] (See `npm config`)
26 +```
27 +
28 +Note: This command is unaware of workspaces.
29 +
30 +### Description
31 +
32 +Get a value from the npm configuration
33 +
34 +### Configuration
35 +
36 +#### `long`
37 +
38 +- Default: false
39 +- Type: Boolean
40 +
41 +Show extended information in `ls`, `search`, and `help-search`.
42 +
43 +### See Also
44 +
45 +- [npm help config](/cli/v11/commands/npm-config)
content/cli/v11/commands/npm-help-search.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-help-search.md
8 redirect_from:
9 - - /cli-commands/help-search
10 - - /cli-commands/npm-help-search
11 - - /cli-documentation/cli-commands/help-search
12 - - /cli-documentation/cli-commands/npm-help-search
13 - - /cli-documentation/commands/help-search
14 - - /cli-documentation/commands/npm-help-search
15 - - /cli-documentation/help-search
16 - - /cli-documentation/npm-help-search
9 - /cli-documentation/v11/cli-commands/help-search
10 - /cli-documentation/v11/cli-commands/npm-help-search
11 - /cli-documentation/v11/commands/help-search
12 - /cli-documentation/v11/commands/npm-help-search
13 - /cli-documentation/v11/help-search
14 - /cli-documentation/v11/npm-help-search
23 - - /cli/cli-commands/help-search
24 - - /cli/cli-commands/npm-help-search
25 - - /cli/commands/help-search
26 - - /cli/commands/npm-help-search
27 - - /cli/help-search
28 - - /cli/npm-help-search
15 - /cli/v11/cli-commands/help-search
16 - /cli/v11/cli-commands/npm-help-search
17 - /cli/v11/commands/help-search
18 - /cli/v11/help-search
19 - /cli/v11/npm-help-search
34 - - /commands/help-search
35 - - /commands/npm-help-search
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-help.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-help.md
8 redirect_from:
9 - - /cli-commands/help
10 - - /cli-commands/npm-help
11 - - /cli-documentation/cli-commands/help
12 - - /cli-documentation/cli-commands/npm-help
13 - - /cli-documentation/commands/help
14 - - /cli-documentation/commands/npm-help
15 - - /cli-documentation/help
16 - - /cli-documentation/npm-help
9 - /cli-documentation/v11/cli-commands/help
10 - /cli-documentation/v11/cli-commands/npm-help
11 - /cli-documentation/v11/commands/help
12 - /cli-documentation/v11/commands/npm-help
13 - /cli-documentation/v11/help
14 - /cli-documentation/v11/npm-help
23 - - /cli/cli-commands/help
24 - - /cli/cli-commands/npm-help
25 - - /cli/commands/help
26 - - /cli/commands/npm-help
27 - - /cli/help
28 - - /cli/npm-help
15 - /cli/v11/cli-commands/help
16 - /cli/v11/cli-commands/npm-help
17 - /cli/v11/commands/help
18 - /cli/v11/help
19 - /cli/v11/npm-help
34 - - /commands/help
35 - - /commands/npm-help
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-init.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-init.md
8 redirect_from:
9 - - /cli-commands/init
10 - - /cli-commands/npm-init
11 - - /cli-documentation/cli-commands/init
12 - - /cli-documentation/cli-commands/npm-init
13 - - /cli-documentation/commands/init
14 - - /cli-documentation/commands/npm-init
15 - - /cli-documentation/init
16 - - /cli-documentation/npm-init
9 - /cli-documentation/v11/cli-commands/init
10 - /cli-documentation/v11/cli-commands/npm-init
11 - /cli-documentation/v11/commands/init
12 - /cli-documentation/v11/commands/npm-init
13 - /cli-documentation/v11/init
14 - /cli-documentation/v11/npm-init
23 - - /cli/cli-commands/init
24 - - /cli/cli-commands/npm-init
25 - - /cli/commands/init
26 - - /cli/commands/npm-init
27 - - /cli/init
28 - - /cli/npm-init
15 - /cli/v11/cli-commands/init
16 - /cli/v11/cli-commands/npm-init
17 - /cli/v11/commands/init
18 - /cli/v11/init
19 - /cli/v11/npm-init
34 - - /commands/init
35 - - /commands/npm-init
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-install-ci-test.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-install-ci-test.md
8 redirect_from:
9 - - /cli-commands/install-ci-test
10 - - /cli-commands/npm-install-ci-test
11 - - /cli-documentation/cli-commands/install-ci-test
12 - - /cli-documentation/cli-commands/npm-install-ci-test
13 - - /cli-documentation/commands/install-ci-test
14 - - /cli-documentation/commands/npm-install-ci-test
15 - - /cli-documentation/install-ci-test
16 - - /cli-documentation/npm-install-ci-test
9 - /cli-documentation/v11/cli-commands/install-ci-test
10 - /cli-documentation/v11/cli-commands/npm-install-ci-test
11 - /cli-documentation/v11/commands/install-ci-test
12 - /cli-documentation/v11/commands/npm-install-ci-test
13 - /cli-documentation/v11/install-ci-test
14 - /cli-documentation/v11/npm-install-ci-test
23 - - /cli/cli-commands/install-ci-test
24 - - /cli/cli-commands/npm-install-ci-test
25 - - /cli/commands/install-ci-test
26 - - /cli/commands/npm-install-ci-test
27 - - /cli/install-ci-test
28 - - /cli/npm-install-ci-test
15 - /cli/v11/cli-commands/install-ci-test
16 - /cli/v11/cli-commands/npm-install-ci-test
17 - /cli/v11/commands/install-ci-test
18 - /cli/v11/install-ci-test
19 - /cli/v11/npm-install-ci-test
34 - - /commands/install-ci-test
35 - - /commands/npm-install-ci-test
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-install-test.mdx
+13 -16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-install-test.md
8 redirect_from:
9 - - /cli-commands/install-test
10 - - /cli-commands/npm-install-test
11 - - /cli-documentation/cli-commands/install-test
12 - - /cli-documentation/cli-commands/npm-install-test
13 - - /cli-documentation/commands/install-test
14 - - /cli-documentation/commands/npm-install-test
15 - - /cli-documentation/install-test
16 - - /cli-documentation/npm-install-test
9 - /cli-documentation/v11/cli-commands/install-test
10 - /cli-documentation/v11/cli-commands/npm-install-test
11 - /cli-documentation/v11/commands/install-test
12 - /cli-documentation/v11/commands/npm-install-test
13 - /cli-documentation/v11/install-test
14 - /cli-documentation/v11/npm-install-test
23 - - /cli/cli-commands/install-test
24 - - /cli/cli-commands/npm-install-test
25 - - /cli/commands/install-test
26 - - /cli/commands/npm-install-test
27 - - /cli/install-test
28 - - /cli/npm-install-test
15 - /cli/v11/cli-commands/install-test
16 - /cli/v11/cli-commands/npm-install-test
17 - /cli/v11/commands/install-test
18 - /cli/v11/install-test
19 - /cli/v11/npm-install-test
34 - - /commands/install-test
35 - - /commands/npm-install-test
20 ---
21
22 ### Synopsis
@@ -204,6 +188,19 @@ If passed to `npm install`, will rebuild the npm tree such that only versions th
188
189 If the requested version is a `dist-tag` and the given tag does not pass the `--before` filter, the most recent version less than or equal to that tag will be used. For example, `foo@latest` might install `foo@1.2` even though `latest` is `2.0`.
190
191 +This config cannot be used with: `min-release-age`
192 +
193 +#### `min-release-age`
194 +
195 +- Default: null
196 +- Type: null or Number
197 +
198 +If set, npm will build the npm tree such that only versions that were available more than the given number of days ago will be installed. If there are no versions available for the current set of dependencies, the command will error.
199 +
200 +This flag is a complement to `before`, which accepts an exact date instead of a relative number of days.
201 +
202 +This config cannot be used with: `before`
203 +
204 #### `bin-links`
205
206 - Default: true
content/cli/v11/commands/npm-install.mdx
+13 -16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-install.md
8 redirect_from:
9 - - /cli-commands/install
10 - - /cli-commands/npm-install
11 - - /cli-documentation/cli-commands/install
12 - - /cli-documentation/cli-commands/npm-install
13 - - /cli-documentation/commands/install
14 - - /cli-documentation/commands/npm-install
15 - - /cli-documentation/install
16 - - /cli-documentation/npm-install
9 - /cli-documentation/v11/cli-commands/install
10 - /cli-documentation/v11/cli-commands/npm-install
11 - /cli-documentation/v11/commands/install
12 - /cli-documentation/v11/commands/npm-install
13 - /cli-documentation/v11/install
14 - /cli-documentation/v11/npm-install
23 - - /cli/cli-commands/install
24 - - /cli/cli-commands/npm-install
25 - - /cli/commands/install
26 - - /cli/commands/npm-install
27 - - /cli/install
28 - - /cli/npm-install
15 - /cli/v11/cli-commands/install
16 - /cli/v11/cli-commands/npm-install
17 - /cli/v11/commands/install
18 - /cli/v11/install
19 - /cli/v11/npm-install
34 - - /commands/install
35 - - /commands/npm-install
20 ---
21
22 ### Synopsis
@@ -508,6 +492,19 @@ If passed to `npm install`, will rebuild the npm tree such that only versions th
492
493 If the requested version is a `dist-tag` and the given tag does not pass the `--before` filter, the most recent version less than or equal to that tag will be used. For example, `foo@latest` might install `foo@1.2` even though `latest` is `2.0`.
494
495 +This config cannot be used with: `min-release-age`
496 +
497 +#### `min-release-age`
498 +
499 +- Default: null
500 +- Type: null or Number
501 +
502 +If set, npm will build the npm tree such that only versions that were available more than the given number of days ago will be installed. If there are no versions available for the current set of dependencies, the command will error.
503 +
504 +This flag is a complement to `before`, which accepts an exact date instead of a relative number of days.
505 +
506 +This config cannot be used with: `before`
507 +
508 #### `bin-links`
509
510 - Default: true
content/cli/v11/commands/npm-link.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-link.md
8 redirect_from:
9 - - /cli-commands/link
10 - - /cli-commands/npm-link
11 - - /cli-documentation/cli-commands/link
12 - - /cli-documentation/cli-commands/npm-link
13 - - /cli-documentation/commands/link
14 - - /cli-documentation/commands/npm-link
15 - - /cli-documentation/link
16 - - /cli-documentation/npm-link
9 - /cli-documentation/v11/cli-commands/link
10 - /cli-documentation/v11/cli-commands/npm-link
11 - /cli-documentation/v11/commands/link
12 - /cli-documentation/v11/commands/npm-link
13 - /cli-documentation/v11/link
14 - /cli-documentation/v11/npm-link
23 - - /cli/cli-commands/link
24 - - /cli/cli-commands/npm-link
25 - - /cli/commands/link
26 - - /cli/commands/npm-link
27 - - /cli/link
28 - - /cli/npm-link
15 - /cli/v11/cli-commands/link
16 - /cli/v11/cli-commands/npm-link
17 - /cli/v11/commands/link
18 - /cli/v11/link
19 - /cli/v11/npm-link
34 - - /commands/link
35 - - /commands/npm-link
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-ll.mdx new
+187
@@ -0,0 +1,187 @@
1 +---
2 +title: npm-ll
3 +section: 1
4 +description: List installed packages
5 +github_repo: npm/cli
6 +github_branch: latest
7 +github_path: docs/lib/content/commands/npm-ll.md
8 +redirect_from:
9 + - /cli-documentation/v11/cli-commands/ll
10 + - /cli-documentation/v11/cli-commands/npm-ll
11 + - /cli-documentation/v11/commands/ll
12 + - /cli-documentation/v11/commands/npm-ll
13 + - /cli-documentation/v11/ll
14 + - /cli-documentation/v11/npm-ll
15 + - /cli/v11/cli-commands/ll
16 + - /cli/v11/cli-commands/npm-ll
17 + - /cli/v11/commands/ll
18 + - /cli/v11/ll
19 + - /cli/v11/npm-ll
20 +---
21 +
22 +### Synopsis
23 +
24 +```bash
25 +npm ll [[<@scope>/]<pkg> ...]
26 +
27 +alias: la
28 +```
29 +
30 +### Description
31 +
32 +List installed packages
33 +
34 +### Configuration
35 +
36 +#### `all`
37 +
38 +- Default: false
39 +- Type: Boolean
40 +
41 +When running `npm outdated` and `npm ls`, setting `--all` will show all outdated or installed packages, rather than only those directly depended upon by the current project.
42 +
43 +#### `json`
44 +
45 +- Default: false
46 +- Type: Boolean
47 +
48 +Whether or not to output JSON data, rather than the normal output.
49 +
50 +- In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`.
51 +
52 +Not supported by all npm commands.
53 +
54 +#### `long`
55 +
56 +- Default: false
57 +- Type: Boolean
58 +
59 +Show extended information in `ls`, `search`, and `help-search`.
60 +
61 +#### `parseable`
62 +
63 +- Default: false
64 +- Type: Boolean
65 +
66 +Output parseable results from commands that write to standard output. For `npm search`, this will be tab-separated table format.
67 +
68 +#### `global`
69 +
70 +- Default: false
71 +- Type: Boolean
72 +
73 +Operates in "global" mode, so that packages are installed into the `prefix` folder instead of the current working directory. See [folders](/cli/v11/configuring-npm/folders) for more on the differences in behavior.
74 +
75 +- packages are installed into the `{prefix}/lib/node_modules` folder, instead of the current working directory.
76 +- bin files are linked to `{prefix}/bin`
77 +- man pages are linked to `{prefix}/share/man`
78 +
79 +#### `depth`
80 +
81 +- Default: `Infinity` if `--all` is set; otherwise, `0`
82 +- Type: null or Number
83 +
84 +The depth to go when recursing packages for `npm ls`.
85 +
86 +If not set, `npm ls` will show only the immediate dependencies of the root project. If `--all` is set, then npm will show all dependencies by default.
87 +
88 +#### `omit`
89 +
90 +- Default: 'dev' if the `NODE_ENV` environment variable is set to 'production'; otherwise, empty.
91 +- Type: "dev", "optional", or "peer" (can be set multiple times)
92 +
93 +Dependency types to omit from the installation tree on disk.
94 +
95 +Note that these dependencies _are_ still resolved and added to the `package-lock.json` or `npm-shrinkwrap.json` file. They are just not physically installed on disk.
96 +
97 +If a package type appears in both the `--include` and `--omit` lists, then it will be included.
98 +
99 +If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment variable will be set to `'production'` for all lifecycle scripts.
100 +
101 +#### `include`
102 +
103 +- Default:
104 +- Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
105 +
106 +Option that allows for defining which types of dependencies to install.
107 +
108 +This is the inverse of `--omit=<type>`.
109 +
110 +Dependency types specified in `--include` will not be omitted, regardless of the order in which omit/include are specified on the command-line.
111 +
112 +#### `link`
113 +
114 +- Default: false
115 +- Type: Boolean
116 +
117 +Used with `npm ls`, limiting output to only those packages that are linked.
118 +
119 +#### `package-lock-only`
120 +
121 +- Default: false
122 +- Type: Boolean
123 +
124 +If set to true, the current operation will only use the `package-lock.json`, ignoring `node_modules`.
125 +
126 +For `update` this means only the `package-lock.json` will be updated, instead of checking `node_modules` and downloading dependencies.
127 +
128 +For `list` this means the output will be based on the tree described by the `package-lock.json`, rather than the contents of `node_modules`.
129 +
130 +#### `unicode`
131 +
132 +- Default: false on windows, true on mac/unix systems with a unicode locale, as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
133 +- Type: Boolean
134 +
135 +When set to true, npm uses unicode characters in the tree output. When false, it uses ascii characters instead of unicode glyphs.
136 +
137 +#### `workspace`
138 +
139 +- Default:
140 +- Type: String (can be set multiple times)
141 +
142 +Enable running a command in the context of the configured workspaces of the current project while filtering by running only the workspaces defined by this configuration option.
143 +
144 +Valid values for the `workspace` config are either:
145 +
146 +- Workspace names
147 +- Path to a workspace directory
148 +- Path to a parent workspace directory (will result in selecting all workspaces within that folder)
149 +
150 +When set for the `npm init` command, this may be set to the folder of a workspace which does not yet exist, to create the folder and set it up as a brand new workspace within the project.
151 +
152 +This value is not exported to the environment for child processes.
153 +
154 +#### `workspaces`
155 +
156 +- Default: null
157 +- Type: null or Boolean
158 +
159 +Set to true to run the command in the context of **all** configured workspaces.
160 +
161 +Explicitly setting this to false will cause commands like `install` to ignore workspaces altogether. When not set explicitly:
162 +
163 +- Commands that operate on the `node_modules` tree (install, update, etc.) will link workspaces into the `node_modules` folder. - Commands that do other things (test, exec, publish, etc.) will operate on the root project, _unless_ one or more workspaces are specified in the `workspace` config.
164 +
165 +This value is not exported to the environment for child processes.
166 +
167 +#### `include-workspace-root`
168 +
169 +- Default: false
170 +- Type: Boolean
171 +
172 +Include the workspace root when workspaces are enabled for a command.
173 +
174 +When false, specifying individual workspaces via the `workspace` config, or all workspaces via the `workspaces` flag, will cause npm to operate only on the specified workspaces, and not on the root project.
175 +
176 +This value is not exported to the environment for child processes.
177 +
178 +#### `install-links`
179 +
180 +- Default: false
181 +- Type: Boolean
182 +
183 +When set file: protocol dependencies will be packed and installed as regular dependencies instead of creating a symlink. This option has no effect on workspaces.
184 +
185 +### See Also
186 +
187 +- [npm help config](/cli/v11/commands/npm-config)
content/cli/v11/commands/npm-login.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-login.md
8 redirect_from:
9 - - /cli-commands/login
10 - - /cli-commands/npm-login
11 - - /cli-documentation/cli-commands/login
12 - - /cli-documentation/cli-commands/npm-login
13 - - /cli-documentation/commands/login
14 - - /cli-documentation/commands/npm-login
15 - - /cli-documentation/login
16 - - /cli-documentation/npm-login
9 - /cli-documentation/v11/cli-commands/login
10 - /cli-documentation/v11/cli-commands/npm-login
11 - /cli-documentation/v11/commands/login
12 - /cli-documentation/v11/commands/npm-login
13 - /cli-documentation/v11/login
14 - /cli-documentation/v11/npm-login
23 - - /cli/cli-commands/login
24 - - /cli/cli-commands/npm-login
25 - - /cli/commands/login
26 - - /cli/commands/npm-login
27 - - /cli/login
28 - - /cli/npm-login
15 - /cli/v11/cli-commands/login
16 - /cli/v11/cli-commands/npm-login
17 - /cli/v11/commands/login
18 - /cli/v11/login
19 - /cli/v11/npm-login
34 - - /commands/login
35 - - /commands/npm-login
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-logout.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-logout.md
8 redirect_from:
9 - - /cli-commands/logout
10 - - /cli-commands/npm-logout
11 - - /cli-documentation/cli-commands/logout
12 - - /cli-documentation/cli-commands/npm-logout
13 - - /cli-documentation/commands/logout
14 - - /cli-documentation/commands/npm-logout
15 - - /cli-documentation/logout
16 - - /cli-documentation/npm-logout
9 - /cli-documentation/v11/cli-commands/logout
10 - /cli-documentation/v11/cli-commands/npm-logout
11 - /cli-documentation/v11/commands/logout
12 - /cli-documentation/v11/commands/npm-logout
13 - /cli-documentation/v11/logout
14 - /cli-documentation/v11/npm-logout
23 - - /cli/cli-commands/logout
24 - - /cli/cli-commands/npm-logout
25 - - /cli/commands/logout
26 - - /cli/commands/npm-logout
27 - - /cli/logout
28 - - /cli/npm-logout
15 - /cli/v11/cli-commands/logout
16 - /cli/v11/cli-commands/npm-logout
17 - /cli/v11/commands/logout
18 - /cli/v11/logout
19 - /cli/v11/npm-logout
34 - - /commands/logout
35 - - /commands/npm-logout
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-ls.mdx
+1 -17
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-ls.md
8 redirect_from:
9 - - /cli-commands/ls
10 - - /cli-commands/npm-ls
11 - - /cli-documentation/cli-commands/ls
12 - - /cli-documentation/cli-commands/npm-ls
13 - - /cli-documentation/commands/ls
14 - - /cli-documentation/commands/npm-ls
15 - - /cli-documentation/ls
16 - - /cli-documentation/npm-ls
9 - /cli-documentation/v11/cli-commands/ls
10 - /cli-documentation/v11/cli-commands/npm-ls
11 - /cli-documentation/v11/commands/ls
12 - /cli-documentation/v11/commands/npm-ls
13 - /cli-documentation/v11/ls
14 - /cli-documentation/v11/npm-ls
23 - - /cli/cli-commands/ls
24 - - /cli/cli-commands/npm-ls
25 - - /cli/commands/ls
26 - - /cli/commands/npm-ls
27 - - /cli/ls
28 - - /cli/npm-ls
15 - /cli/v11/cli-commands/ls
16 - /cli/v11/cli-commands/npm-ls
17 - /cli/v11/commands/ls
18 - /cli/v11/ls
19 - /cli/v11/npm-ls
34 - - /commands/ls
35 - - /commands/npm-ls
20 ---
21
22 ### Synopsis
@@ -52,7 +36,7 @@ Note: to get a "bottoms up" view of why a given package is included in the tree
36 Positional arguments are `name@version-range` identifiers, which will limit the results to only the paths to the packages named. Note that nested packages will _also_ show the paths to the specified packages. For example, running `npm ls promzard` in npm's source tree will show:
37
38 ```bash
55 -npm@11.9.0 /path/to/npm
39 +npm@11.10.0 /path/to/npm
40 └─┬ init-package-json@0.0.4
41 └── promzard@0.1.5
42 ```
content/cli/v11/commands/npm-org.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-org.md
8 redirect_from:
9 - - /cli-commands/npm-org
10 - - /cli-commands/org
11 - - /cli-documentation/cli-commands/npm-org
12 - - /cli-documentation/cli-commands/org
13 - - /cli-documentation/commands/npm-org
14 - - /cli-documentation/commands/org
15 - - /cli-documentation/npm-org
16 - - /cli-documentation/org
9 - /cli-documentation/v11/cli-commands/npm-org
10 - /cli-documentation/v11/cli-commands/org
11 - /cli-documentation/v11/commands/npm-org
12 - /cli-documentation/v11/commands/org
13 - /cli-documentation/v11/npm-org
14 - /cli-documentation/v11/org
23 - - /cli/cli-commands/npm-org
24 - - /cli/cli-commands/org
25 - - /cli/commands/npm-org
26 - - /cli/commands/org
27 - - /cli/npm-org
28 - - /cli/org
15 - /cli/v11/cli-commands/npm-org
16 - /cli/v11/cli-commands/org
17 - /cli/v11/commands/org
18 - /cli/v11/npm-org
19 - /cli/v11/org
34 - - /commands/npm-org
35 - - /commands/org
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-outdated.mdx
+13 -16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-outdated.md
8 redirect_from:
9 - - /cli-commands/npm-outdated
10 - - /cli-commands/outdated
11 - - /cli-documentation/cli-commands/npm-outdated
12 - - /cli-documentation/cli-commands/outdated
13 - - /cli-documentation/commands/npm-outdated
14 - - /cli-documentation/commands/outdated
15 - - /cli-documentation/npm-outdated
16 - - /cli-documentation/outdated
9 - /cli-documentation/v11/cli-commands/npm-outdated
10 - /cli-documentation/v11/cli-commands/outdated
11 - /cli-documentation/v11/commands/npm-outdated
12 - /cli-documentation/v11/commands/outdated
13 - /cli-documentation/v11/npm-outdated
14 - /cli-documentation/v11/outdated
23 - - /cli/cli-commands/npm-outdated
24 - - /cli/cli-commands/outdated
25 - - /cli/commands/npm-outdated
26 - - /cli/commands/outdated
27 - - /cli/npm-outdated
28 - - /cli/outdated
15 - /cli/v11/cli-commands/npm-outdated
16 - /cli/v11/cli-commands/outdated
17 - /cli/v11/commands/outdated
18 - /cli/v11/npm-outdated
19 - /cli/v11/outdated
34 - - /commands/npm-outdated
35 - - /commands/outdated
20 ---
21
22 ### Synopsis
@@ -160,6 +144,19 @@ If passed to `npm install`, will rebuild the npm tree such that only versions th
144
145 If the requested version is a `dist-tag` and the given tag does not pass the `--before` filter, the most recent version less than or equal to that tag will be used. For example, `foo@latest` might install `foo@1.2` even though `latest` is `2.0`.
146
147 +This config cannot be used with: `min-release-age`
148 +
149 +#### `min-release-age`
150 +
151 +- Default: null
152 +- Type: null or Number
153 +
154 +If set, npm will build the npm tree such that only versions that were available more than the given number of days ago will be installed. If there are no versions available for the current set of dependencies, the command will error.
155 +
156 +This flag is a complement to `before`, which accepts an exact date instead of a relative number of days.
157 +
158 +This config cannot be used with: `before`
159 +
160 ### See Also
161
162 - [package spec](/cli/v11/using-npm/package-spec)
content/cli/v11/commands/npm-owner.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-owner.md
8 redirect_from:
9 - - /cli-commands/npm-owner
10 - - /cli-commands/owner
11 - - /cli-documentation/cli-commands/npm-owner
12 - - /cli-documentation/cli-commands/owner
13 - - /cli-documentation/commands/npm-owner
14 - - /cli-documentation/commands/owner
15 - - /cli-documentation/npm-owner
16 - - /cli-documentation/owner
9 - /cli-documentation/v11/cli-commands/npm-owner
10 - /cli-documentation/v11/cli-commands/owner
11 - /cli-documentation/v11/commands/npm-owner
12 - /cli-documentation/v11/commands/owner
13 - /cli-documentation/v11/npm-owner
14 - /cli-documentation/v11/owner
23 - - /cli/cli-commands/npm-owner
24 - - /cli/cli-commands/owner
25 - - /cli/commands/npm-owner
26 - - /cli/commands/owner
27 - - /cli/npm-owner
28 - - /cli/owner
15 - /cli/v11/cli-commands/npm-owner
16 - /cli/v11/cli-commands/owner
17 - /cli/v11/commands/owner
18 - /cli/v11/npm-owner
19 - /cli/v11/owner
34 - - /commands/npm-owner
35 - - /commands/owner
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-pack.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-pack.md
8 redirect_from:
9 - - /cli-commands/npm-pack
10 - - /cli-commands/pack
11 - - /cli-documentation/cli-commands/npm-pack
12 - - /cli-documentation/cli-commands/pack
13 - - /cli-documentation/commands/npm-pack
14 - - /cli-documentation/commands/pack
15 - - /cli-documentation/npm-pack
16 - - /cli-documentation/pack
9 - /cli-documentation/v11/cli-commands/npm-pack
10 - /cli-documentation/v11/cli-commands/pack
11 - /cli-documentation/v11/commands/npm-pack
12 - /cli-documentation/v11/commands/pack
13 - /cli-documentation/v11/npm-pack
14 - /cli-documentation/v11/pack
23 - - /cli/cli-commands/npm-pack
24 - - /cli/cli-commands/pack
25 - - /cli/commands/npm-pack
26 - - /cli/commands/pack
27 - - /cli/npm-pack
28 - - /cli/pack
15 - /cli/v11/cli-commands/npm-pack
16 - /cli/v11/cli-commands/pack
17 - /cli/v11/commands/pack
18 - /cli/v11/npm-pack
19 - /cli/v11/pack
34 - - /commands/npm-pack
35 - - /commands/pack
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-ping.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-ping.md
8 redirect_from:
9 - - /cli-commands/npm-ping
10 - - /cli-commands/ping
11 - - /cli-documentation/cli-commands/npm-ping
12 - - /cli-documentation/cli-commands/ping
13 - - /cli-documentation/commands/npm-ping
14 - - /cli-documentation/commands/ping
15 - - /cli-documentation/npm-ping
16 - - /cli-documentation/ping
9 - /cli-documentation/v11/cli-commands/npm-ping
10 - /cli-documentation/v11/cli-commands/ping
11 - /cli-documentation/v11/commands/npm-ping
12 - /cli-documentation/v11/commands/ping
13 - /cli-documentation/v11/npm-ping
14 - /cli-documentation/v11/ping
23 - - /cli/cli-commands/npm-ping
24 - - /cli/cli-commands/ping
25 - - /cli/commands/npm-ping
26 - - /cli/commands/ping
27 - - /cli/npm-ping
28 - - /cli/ping
15 - /cli/v11/cli-commands/npm-ping
16 - /cli/v11/cli-commands/ping
17 - /cli/v11/commands/ping
18 - /cli/v11/npm-ping
19 - /cli/v11/ping
34 - - /commands/npm-ping
35 - - /commands/ping
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-pkg.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-pkg.md
8 redirect_from:
9 - - /cli-commands/npm-pkg
10 - - /cli-commands/pkg
11 - - /cli-documentation/cli-commands/npm-pkg
12 - - /cli-documentation/cli-commands/pkg
13 - - /cli-documentation/commands/npm-pkg
14 - - /cli-documentation/commands/pkg
15 - - /cli-documentation/npm-pkg
16 - - /cli-documentation/pkg
9 - /cli-documentation/v11/cli-commands/npm-pkg
10 - /cli-documentation/v11/cli-commands/pkg
11 - /cli-documentation/v11/commands/npm-pkg
12 - /cli-documentation/v11/commands/pkg
13 - /cli-documentation/v11/npm-pkg
14 - /cli-documentation/v11/pkg
23 - - /cli/cli-commands/npm-pkg
24 - - /cli/cli-commands/pkg
25 - - /cli/commands/npm-pkg
26 - - /cli/commands/pkg
27 - - /cli/npm-pkg
28 - - /cli/pkg
15 - /cli/v11/cli-commands/npm-pkg
16 - /cli/v11/cli-commands/pkg
17 - /cli/v11/commands/pkg
18 - /cli/v11/npm-pkg
19 - /cli/v11/pkg
34 - - /commands/npm-pkg
35 - - /commands/pkg
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-prefix.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-prefix.md
8 redirect_from:
9 - - /cli-commands/npm-prefix
10 - - /cli-commands/prefix
11 - - /cli-documentation/cli-commands/npm-prefix
12 - - /cli-documentation/cli-commands/prefix
13 - - /cli-documentation/commands/npm-prefix
14 - - /cli-documentation/commands/prefix
15 - - /cli-documentation/npm-prefix
16 - - /cli-documentation/prefix
9 - /cli-documentation/v11/cli-commands/npm-prefix
10 - /cli-documentation/v11/cli-commands/prefix
11 - /cli-documentation/v11/commands/npm-prefix
12 - /cli-documentation/v11/commands/prefix
13 - /cli-documentation/v11/npm-prefix
14 - /cli-documentation/v11/prefix
23 - - /cli/cli-commands/npm-prefix
24 - - /cli/cli-commands/prefix
25 - - /cli/commands/npm-prefix
26 - - /cli/commands/prefix
27 - - /cli/npm-prefix
28 - - /cli/prefix
15 - /cli/v11/cli-commands/npm-prefix
16 - /cli/v11/cli-commands/prefix
17 - /cli/v11/commands/prefix
18 - /cli/v11/npm-prefix
19 - /cli/v11/prefix
34 - - /commands/npm-prefix
35 - - /commands/prefix
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-profile.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-profile.md
8 redirect_from:
9 - - /cli-commands/npm-profile
10 - - /cli-commands/profile
11 - - /cli-documentation/cli-commands/npm-profile
12 - - /cli-documentation/cli-commands/profile
13 - - /cli-documentation/commands/npm-profile
14 - - /cli-documentation/commands/profile
15 - - /cli-documentation/npm-profile
16 - - /cli-documentation/profile
9 - /cli-documentation/v11/cli-commands/npm-profile
10 - /cli-documentation/v11/cli-commands/profile
11 - /cli-documentation/v11/commands/npm-profile
12 - /cli-documentation/v11/commands/profile
13 - /cli-documentation/v11/npm-profile
14 - /cli-documentation/v11/profile
23 - - /cli/cli-commands/npm-profile
24 - - /cli/cli-commands/profile
25 - - /cli/commands/npm-profile
26 - - /cli/commands/profile
27 - - /cli/npm-profile
28 - - /cli/profile
15 - /cli/v11/cli-commands/npm-profile
16 - /cli/v11/cli-commands/profile
17 - /cli/v11/commands/profile
18 - /cli/v11/npm-profile
19 - /cli/v11/profile
34 - - /commands/npm-profile
35 - - /commands/profile
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-prune.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-prune.md
8 redirect_from:
9 - - /cli-commands/npm-prune
10 - - /cli-commands/prune
11 - - /cli-documentation/cli-commands/npm-prune
12 - - /cli-documentation/cli-commands/prune
13 - - /cli-documentation/commands/npm-prune
14 - - /cli-documentation/commands/prune
15 - - /cli-documentation/npm-prune
16 - - /cli-documentation/prune
9 - /cli-documentation/v11/cli-commands/npm-prune
10 - /cli-documentation/v11/cli-commands/prune
11 - /cli-documentation/v11/commands/npm-prune
12 - /cli-documentation/v11/commands/prune
13 - /cli-documentation/v11/npm-prune
14 - /cli-documentation/v11/prune
23 - - /cli/cli-commands/npm-prune
24 - - /cli/cli-commands/prune
25 - - /cli/commands/npm-prune
26 - - /cli/commands/prune
27 - - /cli/npm-prune
28 - - /cli/prune
15 - /cli/v11/cli-commands/npm-prune
16 - /cli/v11/cli-commands/prune
17 - /cli/v11/commands/prune
18 - /cli/v11/npm-prune
19 - /cli/v11/prune
34 - - /commands/npm-prune
35 - - /commands/prune
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-publish.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-publish.md
8 redirect_from:
9 - - /cli-commands/npm-publish
10 - - /cli-commands/publish
11 - - /cli-documentation/cli-commands/npm-publish
12 - - /cli-documentation/cli-commands/publish
13 - - /cli-documentation/commands/npm-publish
14 - - /cli-documentation/commands/publish
15 - - /cli-documentation/npm-publish
16 - - /cli-documentation/publish
9 - /cli-documentation/v11/cli-commands/npm-publish
10 - /cli-documentation/v11/cli-commands/publish
11 - /cli-documentation/v11/commands/npm-publish
12 - /cli-documentation/v11/commands/publish
13 - /cli-documentation/v11/npm-publish
14 - /cli-documentation/v11/publish
23 - - /cli/cli-commands/npm-publish
24 - - /cli/cli-commands/publish
25 - - /cli/commands/npm-publish
26 - - /cli/commands/publish
27 - - /cli/npm-publish
28 - - /cli/publish
15 - /cli/v11/cli-commands/npm-publish
16 - /cli/v11/cli-commands/publish
17 - /cli/v11/commands/publish
18 - /cli/v11/npm-publish
19 - /cli/v11/publish
34 - - /commands/npm-publish
35 - - /commands/publish
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-query.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-query.md
8 redirect_from:
9 - - /cli-commands/npm-query
10 - - /cli-commands/query
11 - - /cli-documentation/cli-commands/npm-query
12 - - /cli-documentation/cli-commands/query
13 - - /cli-documentation/commands/npm-query
14 - - /cli-documentation/commands/query
15 - - /cli-documentation/npm-query
16 - - /cli-documentation/query
9 - /cli-documentation/v11/cli-commands/npm-query
10 - /cli-documentation/v11/cli-commands/query
11 - /cli-documentation/v11/commands/npm-query
12 - /cli-documentation/v11/commands/query
13 - /cli-documentation/v11/npm-query
14 - /cli-documentation/v11/query
23 - - /cli/cli-commands/npm-query
24 - - /cli/cli-commands/query
25 - - /cli/commands/npm-query
26 - - /cli/commands/query
27 - - /cli/npm-query
28 - - /cli/query
15 - /cli/v11/cli-commands/npm-query
16 - /cli/v11/cli-commands/query
17 - /cli/v11/commands/query
18 - /cli/v11/npm-query
19 - /cli/v11/query
34 - - /commands/npm-query
35 - - /commands/query
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-rebuild.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-rebuild.md
8 redirect_from:
9 - - /cli-commands/npm-rebuild
10 - - /cli-commands/rebuild
11 - - /cli-documentation/cli-commands/npm-rebuild
12 - - /cli-documentation/cli-commands/rebuild
13 - - /cli-documentation/commands/npm-rebuild
14 - - /cli-documentation/commands/rebuild
15 - - /cli-documentation/npm-rebuild
16 - - /cli-documentation/rebuild
9 - /cli-documentation/v11/cli-commands/npm-rebuild
10 - /cli-documentation/v11/cli-commands/rebuild
11 - /cli-documentation/v11/commands/npm-rebuild
12 - /cli-documentation/v11/commands/rebuild
13 - /cli-documentation/v11/npm-rebuild
14 - /cli-documentation/v11/rebuild
23 - - /cli/cli-commands/npm-rebuild
24 - - /cli/cli-commands/rebuild
25 - - /cli/commands/npm-rebuild
26 - - /cli/commands/rebuild
27 - - /cli/npm-rebuild
28 - - /cli/rebuild
15 - /cli/v11/cli-commands/npm-rebuild
16 - /cli/v11/cli-commands/rebuild
17 - /cli/v11/commands/rebuild
18 - /cli/v11/npm-rebuild
19 - /cli/v11/rebuild
34 - - /commands/npm-rebuild
35 - - /commands/rebuild
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-repo.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-repo.md
8 redirect_from:
9 - - /cli-commands/npm-repo
10 - - /cli-commands/repo
11 - - /cli-documentation/cli-commands/npm-repo
12 - - /cli-documentation/cli-commands/repo
13 - - /cli-documentation/commands/npm-repo
14 - - /cli-documentation/commands/repo
15 - - /cli-documentation/npm-repo
16 - - /cli-documentation/repo
9 - /cli-documentation/v11/cli-commands/npm-repo
10 - /cli-documentation/v11/cli-commands/repo
11 - /cli-documentation/v11/commands/npm-repo
12 - /cli-documentation/v11/commands/repo
13 - /cli-documentation/v11/npm-repo
14 - /cli-documentation/v11/repo
23 - - /cli/cli-commands/npm-repo
24 - - /cli/cli-commands/repo
25 - - /cli/commands/npm-repo
26 - - /cli/commands/repo
27 - - /cli/npm-repo
28 - - /cli/repo
15 - /cli/v11/cli-commands/npm-repo
16 - /cli/v11/cli-commands/repo
17 - /cli/v11/commands/repo
18 - /cli/v11/npm-repo
19 - /cli/v11/repo
34 - - /commands/npm-repo
35 - - /commands/repo
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-restart.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-restart.md
8 redirect_from:
9 - - /cli-commands/npm-restart
10 - - /cli-commands/restart
11 - - /cli-documentation/cli-commands/npm-restart
12 - - /cli-documentation/cli-commands/restart
13 - - /cli-documentation/commands/npm-restart
14 - - /cli-documentation/commands/restart
15 - - /cli-documentation/npm-restart
16 - - /cli-documentation/restart
9 - /cli-documentation/v11/cli-commands/npm-restart
10 - /cli-documentation/v11/cli-commands/restart
11 - /cli-documentation/v11/commands/npm-restart
12 - /cli-documentation/v11/commands/restart
13 - /cli-documentation/v11/npm-restart
14 - /cli-documentation/v11/restart
23 - - /cli/cli-commands/npm-restart
24 - - /cli/cli-commands/restart
25 - - /cli/commands/npm-restart
26 - - /cli/commands/restart
27 - - /cli/npm-restart
28 - - /cli/restart
15 - /cli/v11/cli-commands/npm-restart
16 - /cli/v11/cli-commands/restart
17 - /cli/v11/commands/restart
18 - /cli/v11/npm-restart
19 - /cli/v11/restart
34 - - /commands/npm-restart
35 - - /commands/restart
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-root.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-root.md
8 redirect_from:
9 - - /cli-commands/npm-root
10 - - /cli-commands/root
11 - - /cli-documentation/cli-commands/npm-root
12 - - /cli-documentation/cli-commands/root
13 - - /cli-documentation/commands/npm-root
14 - - /cli-documentation/commands/root
15 - - /cli-documentation/npm-root
16 - - /cli-documentation/root
9 - /cli-documentation/v11/cli-commands/npm-root
10 - /cli-documentation/v11/cli-commands/root
11 - /cli-documentation/v11/commands/npm-root
12 - /cli-documentation/v11/commands/root
13 - /cli-documentation/v11/npm-root
14 - /cli-documentation/v11/root
23 - - /cli/cli-commands/npm-root
24 - - /cli/cli-commands/root
25 - - /cli/commands/npm-root
26 - - /cli/commands/root
27 - - /cli/npm-root
28 - - /cli/root
15 - /cli/v11/cli-commands/npm-root
16 - /cli/v11/cli-commands/root
17 - /cli/v11/commands/root
18 - /cli/v11/npm-root
19 - /cli/v11/root
34 - - /commands/npm-root
35 - - /commands/root
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-run.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-run.md
8 redirect_from:
9 - - /cli-commands/npm-run
10 - - /cli-commands/run
11 - - /cli-documentation/cli-commands/npm-run
12 - - /cli-documentation/cli-commands/run
13 - - /cli-documentation/commands/npm-run
14 - - /cli-documentation/commands/run
15 - - /cli-documentation/npm-run
16 - - /cli-documentation/run
9 - /cli-documentation/v11/cli-commands/npm-run
10 - /cli-documentation/v11/cli-commands/run
11 - /cli-documentation/v11/commands/npm-run
12 - /cli-documentation/v11/commands/run
13 - /cli-documentation/v11/npm-run
14 - /cli-documentation/v11/run
23 - - /cli/cli-commands/npm-run
24 - - /cli/cli-commands/run
25 - - /cli/commands/npm-run
26 - - /cli/commands/run
27 - - /cli/npm-run
28 - - /cli/run
15 - /cli/v11/cli-commands/npm-run
16 - /cli/v11/cli-commands/run
17 - /cli/v11/commands/run
18 - /cli/v11/npm-run
19 - /cli/v11/run
34 - - /commands/npm-run
35 - - /commands/run
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-sbom.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-sbom.md
8 redirect_from:
9 - - /cli-commands/npm-sbom
10 - - /cli-commands/sbom
11 - - /cli-documentation/cli-commands/npm-sbom
12 - - /cli-documentation/cli-commands/sbom
13 - - /cli-documentation/commands/npm-sbom
14 - - /cli-documentation/commands/sbom
15 - - /cli-documentation/npm-sbom
16 - - /cli-documentation/sbom
9 - /cli-documentation/v11/cli-commands/npm-sbom
10 - /cli-documentation/v11/cli-commands/sbom
11 - /cli-documentation/v11/commands/npm-sbom
12 - /cli-documentation/v11/commands/sbom
13 - /cli-documentation/v11/npm-sbom
14 - /cli-documentation/v11/sbom
23 - - /cli/cli-commands/npm-sbom
24 - - /cli/cli-commands/sbom
25 - - /cli/commands/npm-sbom
26 - - /cli/commands/sbom
27 - - /cli/npm-sbom
28 - - /cli/sbom
15 - /cli/v11/cli-commands/npm-sbom
16 - /cli/v11/cli-commands/sbom
17 - /cli/v11/commands/sbom
18 - /cli/v11/npm-sbom
19 - /cli/v11/sbom
34 - - /commands/npm-sbom
35 - - /commands/sbom
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-search.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-search.md
8 redirect_from:
9 - - /cli-commands/npm-search
10 - - /cli-commands/search
11 - - /cli-documentation/cli-commands/npm-search
12 - - /cli-documentation/cli-commands/search
13 - - /cli-documentation/commands/npm-search
14 - - /cli-documentation/commands/search
15 - - /cli-documentation/npm-search
16 - - /cli-documentation/search
9 - /cli-documentation/v11/cli-commands/npm-search
10 - /cli-documentation/v11/cli-commands/search
11 - /cli-documentation/v11/commands/npm-search
12 - /cli-documentation/v11/commands/search
13 - /cli-documentation/v11/npm-search
14 - /cli-documentation/v11/search
23 - - /cli/cli-commands/npm-search
24 - - /cli/cli-commands/search
25 - - /cli/commands/npm-search
26 - - /cli/commands/search
27 - - /cli/npm-search
28 - - /cli/search
15 - /cli/v11/cli-commands/npm-search
16 - /cli/v11/cli-commands/search
17 - /cli/v11/commands/search
18 - /cli/v11/npm-search
19 - /cli/v11/search
34 - - /commands/npm-search
35 - - /commands/search
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-set.mdx new
+62
@@ -0,0 +1,62 @@
1 +---
2 +title: npm-set
3 +section: 1
4 +description: Set a value in the npm configuration
5 +github_repo: npm/cli
6 +github_branch: latest
7 +github_path: docs/lib/content/commands/npm-set.md
8 +redirect_from:
9 + - /cli-documentation/v11/cli-commands/npm-set
10 + - /cli-documentation/v11/cli-commands/set
11 + - /cli-documentation/v11/commands/npm-set
12 + - /cli-documentation/v11/commands/set
13 + - /cli-documentation/v11/npm-set
14 + - /cli-documentation/v11/set
15 + - /cli/v11/cli-commands/npm-set
16 + - /cli/v11/cli-commands/set
17 + - /cli/v11/commands/set
18 + - /cli/v11/npm-set
19 + - /cli/v11/set
20 +---
21 +
22 +### Synopsis
23 +
24 +```bash
25 +npm set <key>=<value> [<key>=<value> ...] (See `npm config`)
26 +```
27 +
28 +Note: This command is unaware of workspaces.
29 +
30 +### Description
31 +
32 +Set a value in the npm configuration
33 +
34 +### Configuration
35 +
36 +#### `global`
37 +
38 +- Default: false
39 +- Type: Boolean
40 +
41 +Operates in "global" mode, so that packages are installed into the `prefix` folder instead of the current working directory. See [folders](/cli/v11/configuring-npm/folders) for more on the differences in behavior.
42 +
43 +- packages are installed into the `{prefix}/lib/node_modules` folder, instead of the current working directory.
44 +- bin files are linked to `{prefix}/bin`
45 +- man pages are linked to `{prefix}/share/man`
46 +
47 +#### `location`
48 +
49 +- Default: "user" unless `--global` is passed, which will also set this value to "global"
50 +- Type: "global", "user", or "project"
51 +
52 +When passed to `npm config` this refers to which config file to use.
53 +
54 +When set to "global" mode, packages are installed into the `prefix` folder instead of the current working directory. See [folders](/cli/v11/configuring-npm/folders) for more on the differences in behavior.
55 +
56 +- packages are installed into the `{prefix}/lib/node_modules` folder, instead of the current working directory.
57 +- bin files are linked to `{prefix}/bin`
58 +- man pages are linked to `{prefix}/share/man`
59 +
60 +### See Also
61 +
62 +- [npm help config](/cli/v11/commands/npm-config)
content/cli/v11/commands/npm-shrinkwrap.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-shrinkwrap.md
8 redirect_from:
9 - - /cli-commands/npm-shrinkwrap
10 - - /cli-commands/shrinkwrap
11 - - /cli-documentation/cli-commands/npm-shrinkwrap
12 - - /cli-documentation/cli-commands/shrinkwrap
13 - - /cli-documentation/commands/npm-shrinkwrap
14 - - /cli-documentation/commands/shrinkwrap
15 - - /cli-documentation/npm-shrinkwrap
16 - - /cli-documentation/shrinkwrap
9 - /cli-documentation/v11/cli-commands/npm-shrinkwrap
10 - /cli-documentation/v11/cli-commands/shrinkwrap
11 - /cli-documentation/v11/commands/npm-shrinkwrap
12 - /cli-documentation/v11/commands/shrinkwrap
13 - /cli-documentation/v11/npm-shrinkwrap
14 - /cli-documentation/v11/shrinkwrap
23 - - /cli/cli-commands/npm-shrinkwrap
24 - - /cli/cli-commands/shrinkwrap
25 - - /cli/commands/npm-shrinkwrap
26 - - /cli/commands/shrinkwrap
27 - - /cli/npm-shrinkwrap
28 - - /cli/shrinkwrap
15 - /cli/v11/cli-commands/npm-shrinkwrap
16 - /cli/v11/cli-commands/shrinkwrap
17 - /cli/v11/commands/shrinkwrap
18 - /cli/v11/npm-shrinkwrap
19 - /cli/v11/shrinkwrap
34 - - /commands/npm-shrinkwrap
35 - - /commands/shrinkwrap
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-star.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-star.md
8 redirect_from:
9 - - /cli-commands/npm-star
10 - - /cli-commands/star
11 - - /cli-documentation/cli-commands/npm-star
12 - - /cli-documentation/cli-commands/star
13 - - /cli-documentation/commands/npm-star
14 - - /cli-documentation/commands/star
15 - - /cli-documentation/npm-star
16 - - /cli-documentation/star
9 - /cli-documentation/v11/cli-commands/npm-star
10 - /cli-documentation/v11/cli-commands/star
11 - /cli-documentation/v11/commands/npm-star
12 - /cli-documentation/v11/commands/star
13 - /cli-documentation/v11/npm-star
14 - /cli-documentation/v11/star
23 - - /cli/cli-commands/npm-star
24 - - /cli/cli-commands/star
25 - - /cli/commands/npm-star
26 - - /cli/commands/star
27 - - /cli/npm-star
28 - - /cli/star
15 - /cli/v11/cli-commands/npm-star
16 - /cli/v11/cli-commands/star
17 - /cli/v11/commands/star
18 - /cli/v11/npm-star
19 - /cli/v11/star
34 - - /commands/npm-star
35 - - /commands/star
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-stars.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-stars.md
8 redirect_from:
9 - - /cli-commands/npm-stars
10 - - /cli-commands/stars
11 - - /cli-documentation/cli-commands/npm-stars
12 - - /cli-documentation/cli-commands/stars
13 - - /cli-documentation/commands/npm-stars
14 - - /cli-documentation/commands/stars
15 - - /cli-documentation/npm-stars
16 - - /cli-documentation/stars
9 - /cli-documentation/v11/cli-commands/npm-stars
10 - /cli-documentation/v11/cli-commands/stars
11 - /cli-documentation/v11/commands/npm-stars
12 - /cli-documentation/v11/commands/stars
13 - /cli-documentation/v11/npm-stars
14 - /cli-documentation/v11/stars
23 - - /cli/cli-commands/npm-stars
24 - - /cli/cli-commands/stars
25 - - /cli/commands/npm-stars
26 - - /cli/commands/stars
27 - - /cli/npm-stars
28 - - /cli/stars
15 - /cli/v11/cli-commands/npm-stars
16 - /cli/v11/cli-commands/stars
17 - /cli/v11/commands/stars
18 - /cli/v11/npm-stars
19 - /cli/v11/stars
34 - - /commands/npm-stars
35 - - /commands/stars
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-start.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-start.md
8 redirect_from:
9 - - /cli-commands/npm-start
10 - - /cli-commands/start
11 - - /cli-documentation/cli-commands/npm-start
12 - - /cli-documentation/cli-commands/start
13 - - /cli-documentation/commands/npm-start
14 - - /cli-documentation/commands/start
15 - - /cli-documentation/npm-start
16 - - /cli-documentation/start
9 - /cli-documentation/v11/cli-commands/npm-start
10 - /cli-documentation/v11/cli-commands/start
11 - /cli-documentation/v11/commands/npm-start
12 - /cli-documentation/v11/commands/start
13 - /cli-documentation/v11/npm-start
14 - /cli-documentation/v11/start
23 - - /cli/cli-commands/npm-start
24 - - /cli/cli-commands/start
25 - - /cli/commands/npm-start
26 - - /cli/commands/start
27 - - /cli/npm-start
28 - - /cli/start
15 - /cli/v11/cli-commands/npm-start
16 - /cli/v11/cli-commands/start
17 - /cli/v11/commands/start
18 - /cli/v11/npm-start
19 - /cli/v11/start
34 - - /commands/npm-start
35 - - /commands/start
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-stop.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-stop.md
8 redirect_from:
9 - - /cli-commands/npm-stop
10 - - /cli-commands/stop
11 - - /cli-documentation/cli-commands/npm-stop
12 - - /cli-documentation/cli-commands/stop
13 - - /cli-documentation/commands/npm-stop
14 - - /cli-documentation/commands/stop
15 - - /cli-documentation/npm-stop
16 - - /cli-documentation/stop
9 - /cli-documentation/v11/cli-commands/npm-stop
10 - /cli-documentation/v11/cli-commands/stop
11 - /cli-documentation/v11/commands/npm-stop
12 - /cli-documentation/v11/commands/stop
13 - /cli-documentation/v11/npm-stop
14 - /cli-documentation/v11/stop
23 - - /cli/cli-commands/npm-stop
24 - - /cli/cli-commands/stop
25 - - /cli/commands/npm-stop
26 - - /cli/commands/stop
27 - - /cli/npm-stop
28 - - /cli/stop
15 - /cli/v11/cli-commands/npm-stop
16 - /cli/v11/cli-commands/stop
17 - /cli/v11/commands/stop
18 - /cli/v11/npm-stop
19 - /cli/v11/stop
34 - - /commands/npm-stop
35 - - /commands/stop
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-team.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-team.md
8 redirect_from:
9 - - /cli-commands/npm-team
10 - - /cli-commands/team
11 - - /cli-documentation/cli-commands/npm-team
12 - - /cli-documentation/cli-commands/team
13 - - /cli-documentation/commands/npm-team
14 - - /cli-documentation/commands/team
15 - - /cli-documentation/npm-team
16 - - /cli-documentation/team
9 - /cli-documentation/v11/cli-commands/npm-team
10 - /cli-documentation/v11/cli-commands/team
11 - /cli-documentation/v11/commands/npm-team
12 - /cli-documentation/v11/commands/team
13 - /cli-documentation/v11/npm-team
14 - /cli-documentation/v11/team
23 - - /cli/cli-commands/npm-team
24 - - /cli/cli-commands/team
25 - - /cli/commands/npm-team
26 - - /cli/commands/team
27 - - /cli/npm-team
28 - - /cli/team
15 - /cli/v11/cli-commands/npm-team
16 - /cli/v11/cli-commands/team
17 - /cli/v11/commands/team
18 - /cli/v11/npm-team
19 - /cli/v11/team
34 - - /commands/npm-team
35 - - /commands/team
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-test.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-test.md
8 redirect_from:
9 - - /cli-commands/npm-test
10 - - /cli-commands/test
11 - - /cli-documentation/cli-commands/npm-test
12 - - /cli-documentation/cli-commands/test
13 - - /cli-documentation/commands/npm-test
14 - - /cli-documentation/commands/test
15 - - /cli-documentation/npm-test
16 - - /cli-documentation/test
9 - /cli-documentation/v11/cli-commands/npm-test
10 - /cli-documentation/v11/cli-commands/test
11 - /cli-documentation/v11/commands/npm-test
12 - /cli-documentation/v11/commands/test
13 - /cli-documentation/v11/npm-test
14 - /cli-documentation/v11/test
23 - - /cli/cli-commands/npm-test
24 - - /cli/cli-commands/test
25 - - /cli/commands/npm-test
26 - - /cli/commands/test
27 - - /cli/npm-test
28 - - /cli/test
15 - /cli/v11/cli-commands/npm-test
16 - /cli/v11/cli-commands/test
17 - /cli/v11/commands/test
18 - /cli/v11/npm-test
19 - /cli/v11/test
34 - - /commands/npm-test
35 - - /commands/test
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-token.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-token.md
8 redirect_from:
9 - - /cli-commands/npm-token
10 - - /cli-commands/token
11 - - /cli-documentation/cli-commands/npm-token
12 - - /cli-documentation/cli-commands/token
13 - - /cli-documentation/commands/npm-token
14 - - /cli-documentation/commands/token
15 - - /cli-documentation/npm-token
16 - - /cli-documentation/token
9 - /cli-documentation/v11/cli-commands/npm-token
10 - /cli-documentation/v11/cli-commands/token
11 - /cli-documentation/v11/commands/npm-token
12 - /cli-documentation/v11/commands/token
13 - /cli-documentation/v11/npm-token
14 - /cli-documentation/v11/token
23 - - /cli/cli-commands/npm-token
24 - - /cli/cli-commands/token
25 - - /cli/commands/npm-token
26 - - /cli/commands/token
27 - - /cli/npm-token
28 - - /cli/token
15 - /cli/v11/cli-commands/npm-token
16 - /cli/v11/cli-commands/token
17 - /cli/v11/commands/token
18 - /cli/v11/npm-token
19 - /cli/v11/token
34 - - /commands/npm-token
35 - - /commands/token
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-trust.mdx new
+153
@@ -0,0 +1,153 @@
1 +---
2 +title: npm-trust
3 +section: 1
4 +description: Manage trusted publishing relationships between packages and CI/CD providers
5 +github_repo: npm/cli
6 +github_branch: latest
7 +github_path: docs/lib/content/commands/npm-trust.md
8 +redirect_from:
9 + - /cli-documentation/v11/cli-commands/npm-trust
10 + - /cli-documentation/v11/cli-commands/trust
11 + - /cli-documentation/v11/commands/npm-trust
12 + - /cli-documentation/v11/commands/trust
13 + - /cli-documentation/v11/npm-trust
14 + - /cli-documentation/v11/trust
15 + - /cli/v11/cli-commands/npm-trust
16 + - /cli/v11/cli-commands/trust
17 + - /cli/v11/commands/trust
18 + - /cli/v11/npm-trust
19 + - /cli/v11/trust
20 +---
21 +
22 +### Synopsis
23 +
24 +```bash
25 +npm trust
26 +```
27 +
28 +Note: This command is unaware of workspaces.
29 +
30 +### Prerequisites
31 +
32 +Before using npm trust commands, ensure the following requirements are met:
33 +
34 +- **npm version**: `npm@11.10.0` or above is required. Use `npm install -g npm@^11.10.0` to update if needed.
35 +- **Write permissions on the package**: You must have write access to the package you're configuring.
36 +- **2FA enabled on account**: Two-factor authentication must be enabled at the account level. Even if it's not currently enabled, you must enable it to use trust commands.
37 +- **Supported authentication methods**: Granular Access Tokens (GAT) with the bypass 2FA option are not supported. Legacy basic auth (username and password) credentials will not work for trust commands or endpoints.
38 +- **Package must exist**: The package you're configuring must already exist on the npm registry.
39 +
40 +### Description
41 +
42 +Configure trust relationships between npm packages and CI/CD providers using OpenID Connect (OIDC). This is the command-line equivalent of managing trusted publisher configurations on the npm website.
43 +
44 +For a comprehensive overview of trusted publishing, see the [npm trusted publishers documentation](https://docs.npmjs.com/trusted-publishers).
45 +
46 +The `[package]` argument specifies the package name. If omitted, npm will use the name from the `package.json` in the current directory.
47 +
48 +Each trust relationship has its own set of configuration options and flags based on the OIDC claims provided by that provider. OIDC claims come from the CI/CD provider and include information such as repository name, workflow file, or environment. Since each provider's claims differ, the available flags and configuration keys are not universal—npm matches the claims supported by each provider's OIDC configuration. For specific details on which claims and flags are supported for a given provider, use `npm trust <provider> --help`.
49 +
50 +The required options depend on the CI/CD provider you're configuring. Detailed information about each option is available in the [managing trusted publisher configurations](https://docs.npmjs.com/trusted-publishers#managing-trusted-publisher-configurations) section of the npm documentation. If a provider is repository-based and the option is not provided, npm will use the `repository.url` field from your `package.json`, if available.
51 +
52 +Currently, the registry only supports one configuration per package. If you attempt to create a new trust relationship when one already exists, it will result in an error. To replace an existing configuration:
53 +
54 +1. Use `npm trust list [package]` to view the ID of the existing trusted publisher
55 +2. Use `npm trust revoke --id <id> [package]` to remove the existing configuration
56 +3. Then create your new trust relationship
57 +
58 +### Bulk Usage
59 +
60 +For maintainers managing a large number of packages, you can configure trusted publishing in bulk using bash scripting. Create a loop that iterates through package names and their corresponding configuration details, executing the `npm trust <provider>` command with the `--yes` flag for each package.
61 +
62 +The first request will require two-factor authentication. During two-factor authentication, you'll see an option on the npm website to skip two-factor authentication for the next 5 minutes. Enabling this option will allow subsequent `npm trust <provider>` commands to proceed without two-factor authentication, streamlining the bulk configuration process.
63 +
64 +We recommend adding a 2-second sleep between each call to avoid rate limiting. With this approach, you can configure approximately 80 packages within the 5-minute two-factor authentication skip window.
65 +
66 +### Configuration
67 +
68 +### `npm trust github`
69 +
70 +Create a trusted relationship between a package and GitHub Actions
71 +
72 +#### Synopsis
73 +
74 +```bash
75 +npm trust github [package] --file [--repo|--repository] [--env|--environment] [-y|--yes]
76 +```
77 +
78 +#### Flags
79 +
80 +| Flag | Default | Type | Description |
81 +| --- | --- | --- | --- |
82 +| `--file` | null | String (required) | Name of workflow file within a repositories .GitHub folder (must end in yaml, yml) |
83 +| `--repository`, `--repo` | null | String | Name of the repository in the format owner/repo |
84 +| `--environment`, `--env` | null | String | CI environment name |
85 +| `--dry-run` | false | Boolean | Indicates that you don't want npm to make any changes and that it should only report what it would have done. This can be passed into any of the commands that modify your local installation, eg, `install`, `update`, `dedupe`, `uninstall`, as well as `pack` and `publish`. Note: This is NOT honored by other network related commands, eg `dist-tags`, `owner`, etc. |
86 +| `--json` | false | Boolean | Whether or not to output JSON data, rather than the normal output. \* In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`. Not supported by all npm commands. |
87 +| `--registry` | "https://registry.npmjs.org/" | URL | The base URL of the npm registry. |
88 +| `--yes`, `-y` | null | null or Boolean | Automatically answer "yes" to any prompts that npm might print on the command line. |
89 +
90 +### `npm trust gitlab`
91 +
92 +Create a trusted relationship between a package and GitLab CI/CD
93 +
94 +#### Synopsis
95 +
96 +```bash
97 +npm trust gitlab [package] --file [--project|--repo|--repository] [--env|--environment] [-y|--yes]
98 +```
99 +
100 +#### Flags
101 +
102 +| Flag | Default | Type | Description |
103 +| --- | --- | --- | --- |
104 +| `--file` | null | String (required) | Name of pipeline file (e.g., .gitlab-ci.yml) |
105 +| `--project` | null | String | Name of the project in the format group/project or group/subgroup/project |
106 +| `--environment`, `--env` | null | String | CI environment name |
107 +| `--dry-run` | false | Boolean | Indicates that you don't want npm to make any changes and that it should only report what it would have done. This can be passed into any of the commands that modify your local installation, eg, `install`, `update`, `dedupe`, `uninstall`, as well as `pack` and `publish`. Note: This is NOT honored by other network related commands, eg `dist-tags`, `owner`, etc. |
108 +| `--json` | false | Boolean | Whether or not to output JSON data, rather than the normal output. \* In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`. Not supported by all npm commands. |
109 +| `--registry` | "https://registry.npmjs.org/" | URL | The base URL of the npm registry. |
110 +| `--yes`, `-y` | null | null or Boolean | Automatically answer "yes" to any prompts that npm might print on the command line. |
111 +
112 +### `npm trust list`
113 +
114 +List trusted relationships for a package
115 +
116 +#### Synopsis
117 +
118 +```bash
119 +npm trust list [package]
120 +```
121 +
122 +#### Flags
123 +
124 +| Flag | Default | Type | Description |
125 +| --- | --- | --- | --- |
126 +| `--json` | false | Boolean | Whether or not to output JSON data, rather than the normal output. \* In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`. Not supported by all npm commands. |
127 +| `--registry` | "https://registry.npmjs.org/" | URL | The base URL of the npm registry. |
128 +
129 +### `npm trust revoke`
130 +
131 +Revoke a trusted relationship for a package
132 +
133 +#### Synopsis
134 +
135 +```bash
136 +npm trust revoke [package] --id=<trust-id>
137 +```
138 +
139 +#### Flags
140 +
141 +| Flag | Default | Type | Description |
142 +| --- | --- | --- | --- |
143 +| `--id` | null | String (required) | ID of the trusted relationship to revoke |
144 +| `--dry-run` | false | Boolean | Indicates that you don't want npm to make any changes and that it should only report what it would have done. This can be passed into any of the commands that modify your local installation, eg, `install`, `update`, `dedupe`, `uninstall`, as well as `pack` and `publish`. Note: This is NOT honored by other network related commands, eg `dist-tags`, `owner`, etc. |
145 +| `--registry` | "https://registry.npmjs.org/" | URL | The base URL of the npm registry. |
146 +
147 +### See Also
148 +
149 +- [npm publish](/cli/v11/commands/npm-publish)
150 +- [npm token](/cli/v11/commands/npm-token)
151 +- [npm access](/cli/v11/commands/npm-access)
152 +- [npm config](/cli/v11/commands/npm-config)
153 +- [npm registry](/cli/v11/using-npm/registry)
content/cli/v11/commands/npm-undeprecate.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-undeprecate.md
8 redirect_from:
9 - - /cli-commands/npm-undeprecate
10 - - /cli-commands/undeprecate
11 - - /cli-documentation/cli-commands/npm-undeprecate
12 - - /cli-documentation/cli-commands/undeprecate
13 - - /cli-documentation/commands/npm-undeprecate
14 - - /cli-documentation/commands/undeprecate
15 - - /cli-documentation/npm-undeprecate
16 - - /cli-documentation/undeprecate
9 - /cli-documentation/v11/cli-commands/npm-undeprecate
10 - /cli-documentation/v11/cli-commands/undeprecate
11 - /cli-documentation/v11/commands/npm-undeprecate
12 - /cli-documentation/v11/commands/undeprecate
13 - /cli-documentation/v11/npm-undeprecate
14 - /cli-documentation/v11/undeprecate
23 - - /cli/cli-commands/npm-undeprecate
24 - - /cli/cli-commands/undeprecate
25 - - /cli/commands/npm-undeprecate
26 - - /cli/commands/undeprecate
27 - - /cli/npm-undeprecate
28 - - /cli/undeprecate
15 - /cli/v11/cli-commands/npm-undeprecate
16 - /cli/v11/cli-commands/undeprecate
17 - /cli/v11/commands/undeprecate
18 - /cli/v11/npm-undeprecate
19 - /cli/v11/undeprecate
34 - - /commands/npm-undeprecate
35 - - /commands/undeprecate
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-uninstall.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-uninstall.md
8 redirect_from:
9 - - /cli-commands/npm-uninstall
10 - - /cli-commands/uninstall
11 - - /cli-documentation/cli-commands/npm-uninstall
12 - - /cli-documentation/cli-commands/uninstall
13 - - /cli-documentation/commands/npm-uninstall
14 - - /cli-documentation/commands/uninstall
15 - - /cli-documentation/npm-uninstall
16 - - /cli-documentation/uninstall
9 - /cli-documentation/v11/cli-commands/npm-uninstall
10 - /cli-documentation/v11/cli-commands/uninstall
11 - /cli-documentation/v11/commands/npm-uninstall
12 - /cli-documentation/v11/commands/uninstall
13 - /cli-documentation/v11/npm-uninstall
14 - /cli-documentation/v11/uninstall
23 - - /cli/cli-commands/npm-uninstall
24 - - /cli/cli-commands/uninstall
25 - - /cli/commands/npm-uninstall
26 - - /cli/commands/uninstall
27 - - /cli/npm-uninstall
28 - - /cli/uninstall
15 - /cli/v11/cli-commands/npm-uninstall
16 - /cli/v11/cli-commands/uninstall
17 - /cli/v11/commands/uninstall
18 - /cli/v11/npm-uninstall
19 - /cli/v11/uninstall
34 - - /commands/npm-uninstall
35 - - /commands/uninstall
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-unpublish.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-unpublish.md
8 redirect_from:
9 - - /cli-commands/npm-unpublish
10 - - /cli-commands/unpublish
11 - - /cli-documentation/cli-commands/npm-unpublish
12 - - /cli-documentation/cli-commands/unpublish
13 - - /cli-documentation/commands/npm-unpublish
14 - - /cli-documentation/commands/unpublish
15 - - /cli-documentation/npm-unpublish
16 - - /cli-documentation/unpublish
9 - /cli-documentation/v11/cli-commands/npm-unpublish
10 - /cli-documentation/v11/cli-commands/unpublish
11 - /cli-documentation/v11/commands/npm-unpublish
12 - /cli-documentation/v11/commands/unpublish
13 - /cli-documentation/v11/npm-unpublish
14 - /cli-documentation/v11/unpublish
23 - - /cli/cli-commands/npm-unpublish
24 - - /cli/cli-commands/unpublish
25 - - /cli/commands/npm-unpublish
26 - - /cli/commands/unpublish
27 - - /cli/npm-unpublish
28 - - /cli/unpublish
15 - /cli/v11/cli-commands/npm-unpublish
16 - /cli/v11/cli-commands/unpublish
17 - /cli/v11/commands/unpublish
18 - /cli/v11/npm-unpublish
19 - /cli/v11/unpublish
34 - - /commands/npm-unpublish
35 - - /commands/unpublish
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-unstar.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-unstar.md
8 redirect_from:
9 - - /cli-commands/npm-unstar
10 - - /cli-commands/unstar
11 - - /cli-documentation/cli-commands/npm-unstar
12 - - /cli-documentation/cli-commands/unstar
13 - - /cli-documentation/commands/npm-unstar
14 - - /cli-documentation/commands/unstar
15 - - /cli-documentation/npm-unstar
16 - - /cli-documentation/unstar
9 - /cli-documentation/v11/cli-commands/npm-unstar
10 - /cli-documentation/v11/cli-commands/unstar
11 - /cli-documentation/v11/commands/npm-unstar
12 - /cli-documentation/v11/commands/unstar
13 - /cli-documentation/v11/npm-unstar
14 - /cli-documentation/v11/unstar
23 - - /cli/cli-commands/npm-unstar
24 - - /cli/cli-commands/unstar
25 - - /cli/commands/npm-unstar
26 - - /cli/commands/unstar
27 - - /cli/npm-unstar
28 - - /cli/unstar
15 - /cli/v11/cli-commands/npm-unstar
16 - /cli/v11/cli-commands/unstar
17 - /cli/v11/commands/unstar
18 - /cli/v11/npm-unstar
19 - /cli/v11/unstar
34 - - /commands/npm-unstar
35 - - /commands/unstar
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-update.mdx
+13 -16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-update.md
8 redirect_from:
9 - - /cli-commands/npm-update
10 - - /cli-commands/update
11 - - /cli-documentation/cli-commands/npm-update
12 - - /cli-documentation/cli-commands/update
13 - - /cli-documentation/commands/npm-update
14 - - /cli-documentation/commands/update
15 - - /cli-documentation/npm-update
16 - - /cli-documentation/update
9 - /cli-documentation/v11/cli-commands/npm-update
10 - /cli-documentation/v11/cli-commands/update
11 - /cli-documentation/v11/commands/npm-update
12 - /cli-documentation/v11/commands/update
13 - /cli-documentation/v11/npm-update
14 - /cli-documentation/v11/update
23 - - /cli/cli-commands/npm-update
24 - - /cli/cli-commands/update
25 - - /cli/commands/npm-update
26 - - /cli/commands/update
27 - - /cli/npm-update
28 - - /cli/update
15 - /cli/v11/cli-commands/npm-update
16 - /cli/v11/cli-commands/update
17 - /cli/v11/commands/update
18 - /cli/v11/npm-update
19 - /cli/v11/update
34 - - /commands/npm-update
35 - - /commands/update
20 ---
21
22 ### Synopsis
@@ -280,6 +264,19 @@ If passed to `npm install`, will rebuild the npm tree such that only versions th
264
265 If the requested version is a `dist-tag` and the given tag does not pass the `--before` filter, the most recent version less than or equal to that tag will be used. For example, `foo@latest` might install `foo@1.2` even though `latest` is `2.0`.
266
267 +This config cannot be used with: `min-release-age`
268 +
269 +#### `min-release-age`
270 +
271 +- Default: null
272 +- Type: null or Number
273 +
274 +If set, npm will build the npm tree such that only versions that were available more than the given number of days ago will be installed. If there are no versions available for the current set of dependencies, the command will error.
275 +
276 +This flag is a complement to `before`, which accepts an exact date instead of a relative number of days.
277 +
278 +This config cannot be used with: `before`
279 +
280 #### `bin-links`
281
282 - Default: true
content/cli/v11/commands/npm-version.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-version.md
8 redirect_from:
9 - - /cli-commands/npm-version
10 - - /cli-commands/version
11 - - /cli-documentation/cli-commands/npm-version
12 - - /cli-documentation/cli-commands/version
13 - - /cli-documentation/commands/npm-version
14 - - /cli-documentation/commands/version
15 - - /cli-documentation/npm-version
9 - /cli-documentation/v11/cli-commands/npm-version
10 - /cli-documentation/v11/cli-commands/version
11 - /cli-documentation/v11/commands/npm-version
12 - /cli-documentation/v11/commands/version
13 - /cli-documentation/v11/npm-version
14 - /cli-documentation/v11/version
22 - - /cli-documentation/version
23 - - /cli/cli-commands/npm-version
24 - - /cli/cli-commands/version
25 - - /cli/commands/npm-version
26 - - /cli/commands/version
27 - - /cli/npm-version
15 - /cli/v11/cli-commands/npm-version
16 - /cli/v11/cli-commands/version
17 - /cli/v11/commands/version
18 - /cli/v11/npm-version
19 - /cli/v11/version
33 - - /cli/version
34 - - /commands/npm-version
35 - - /commands/version
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-view.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-view.md
8 redirect_from:
9 - - /cli-commands/npm-view
10 - - /cli-commands/view
11 - - /cli-documentation/cli-commands/npm-view
12 - - /cli-documentation/cli-commands/view
13 - - /cli-documentation/commands/npm-view
14 - - /cli-documentation/commands/view
15 - - /cli-documentation/npm-view
9 - /cli-documentation/v11/cli-commands/npm-view
10 - /cli-documentation/v11/cli-commands/view
11 - /cli-documentation/v11/commands/npm-view
12 - /cli-documentation/v11/commands/view
13 - /cli-documentation/v11/npm-view
14 - /cli-documentation/v11/view
22 - - /cli-documentation/view
23 - - /cli/cli-commands/npm-view
24 - - /cli/cli-commands/view
25 - - /cli/commands/npm-view
26 - - /cli/commands/view
27 - - /cli/npm-view
15 - /cli/v11/cli-commands/npm-view
16 - /cli/v11/cli-commands/view
17 - /cli/v11/commands/view
18 - /cli/v11/npm-view
19 - /cli/v11/view
33 - - /cli/view
34 - - /commands/npm-view
35 - - /commands/view
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm-whoami.mdx
-16
@@ -6,33 +6,17 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-whoami.md
8 redirect_from:
9 - - /cli-commands/npm-whoami
10 - - /cli-commands/whoami
11 - - /cli-documentation/cli-commands/npm-whoami
12 - - /cli-documentation/cli-commands/whoami
13 - - /cli-documentation/commands/npm-whoami
14 - - /cli-documentation/commands/whoami
15 - - /cli-documentation/npm-whoami
9 - /cli-documentation/v11/cli-commands/npm-whoami
10 - /cli-documentation/v11/cli-commands/whoami
11 - /cli-documentation/v11/commands/npm-whoami
12 - /cli-documentation/v11/commands/whoami
13 - /cli-documentation/v11/npm-whoami
14 - /cli-documentation/v11/whoami
22 - - /cli-documentation/whoami
23 - - /cli/cli-commands/npm-whoami
24 - - /cli/cli-commands/whoami
25 - - /cli/commands/npm-whoami
26 - - /cli/commands/whoami
27 - - /cli/npm-whoami
15 - /cli/v11/cli-commands/npm-whoami
16 - /cli/v11/cli-commands/whoami
17 - /cli/v11/commands/whoami
18 - /cli/v11/npm-whoami
19 - /cli/v11/whoami
33 - - /cli/whoami
34 - - /commands/npm-whoami
35 - - /commands/whoami
20 ---
21
22 ### Synopsis
content/cli/v11/commands/npm.mdx
+1 -9
@@ -6,19 +6,11 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm.md
8 redirect_from:
9 - - /cli-commands/npm
10 - - /cli-documentation/cli-commands/npm
11 - - /cli-documentation/commands/npm
12 - - /cli-documentation/npm
9 - /cli-documentation/v11/cli-commands/npm
10 - /cli-documentation/v11/commands/npm
11 - /cli-documentation/v11/npm
16 - - /cli/cli-commands/npm
17 - - /cli/commands/npm
18 - - /cli/npm
12 - /cli/v11/cli-commands/npm
13 - /cli/v11/npm
21 - - /commands/npm
14 ---
15
16 ### Synopsis
@@ -31,7 +23,7 @@ Note: This command is unaware of workspaces.
23
24 ### Version
25
34 -11.9.0
26 +11.10.0
27
28 ### Description
29
content/cli/v11/commands/npx.mdx
-8
@@ -6,19 +6,11 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npx.md
8 redirect_from:
9 - - /cli-commands/npx
10 - - /cli-documentation/cli-commands/npx
11 - - /cli-documentation/commands/npx
12 - - /cli-documentation/npx
9 - /cli-documentation/v11/cli-commands/npx
10 - /cli-documentation/v11/commands/npx
11 - /cli-documentation/v11/npx
16 - - /cli/cli-commands/npx
17 - - /cli/commands/npx
18 - - /cli/npx
12 - /cli/v11/cli-commands/npx
13 - /cli/v11/npx
21 - - /commands/npx
14 ---
15
16 ### Synopsis
content/cli/v11/configuring-npm/folders.mdx
+2 -8
@@ -1,20 +1,14 @@
1 ---
2 -title: folders
2 +title: Folders
3 section: 5
4 -description: Folder Structures Used by npm
4 +description: Folder structures used by npm
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/configuring-npm/folders.md
8 redirect_from:
9 - - /cli-documentation/configuring-npm/folders
10 - - /cli-documentation/files/folders
9 - /cli-documentation/v11/configuring-npm/folders
10 - /cli-documentation/v11/files/folders
13 - - /cli/configuring-npm/folders
14 - - /cli/files/folders
11 - /cli/v11/files/folders
16 - - /configuring-npm/folders
17 - - /files/folders
12 ---
13
14 ### Description
content/cli/v11/configuring-npm/index.mdx
-12
@@ -5,25 +5,13 @@ github_repo: npm/cli
5 github_branch: latest
6 github_path: docs/lib/content/nav.yml
7 redirect_from:
8 - - /cli-documentation/configuring-npm
9 - - /cli-documentation/configuring-npm/index
10 - - /cli-documentation/files
11 - - /cli-documentation/files/index
8 - /cli-documentation/v11/configuring-npm
9 - /cli-documentation/v11/configuring-npm/index
10 - /cli-documentation/v11/files
11 - /cli-documentation/v11/files/index
16 - - /cli/configuring-npm
17 - - /cli/configuring-npm/index
18 - - /cli/files
19 - - /cli/files/index
12 - /cli/v11/configuring-npm/index
13 - /cli/v11/files
14 - /cli/v11/files/index
23 - - /configuring-npm
24 - - /configuring-npm/index
25 - - /files
26 - - /files/index
15 ---
16
17 <Index depth="1" />
content/cli/v11/configuring-npm/install.mdx
+1 -7
@@ -1,20 +1,14 @@
1 ---
2 -title: install
2 +title: Install
3 section: 5
4 description: Download and install node and npm
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/configuring-npm/install.md
8 redirect_from:
9 - - /cli-documentation/configuring-npm/install
10 - - /cli-documentation/files/install
9 - /cli-documentation/v11/configuring-npm/install
10 - /cli-documentation/v11/files/install
13 - - /cli/configuring-npm/install
14 - - /cli/files/install
11 - /cli/v11/files/install
16 - - /configuring-npm/install
17 - - /files/install
12 ---
13
14 ### Description
content/cli/v11/configuring-npm/npm-shrinkwrap-json.mdx
-12
@@ -6,25 +6,13 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/configuring-npm/npm-shrinkwrap-json.md
8 redirect_from:
9 - - /cli-documentation/configuring-npm/npm-shrinkwrap-json
10 - - /cli-documentation/configuring-npm/npm-shrinkwrap.json
11 - - /cli-documentation/files/npm-shrinkwrap-json
12 - - /cli-documentation/files/npm-shrinkwrap.json
9 - /cli-documentation/v11/configuring-npm/npm-shrinkwrap-json
10 - /cli-documentation/v11/configuring-npm/npm-shrinkwrap.json
11 - /cli-documentation/v11/files/npm-shrinkwrap-json
12 - /cli-documentation/v11/files/npm-shrinkwrap.json
17 - - /cli/configuring-npm/npm-shrinkwrap-json
18 - - /cli/configuring-npm/npm-shrinkwrap.json
19 - - /cli/files/npm-shrinkwrap-json
20 - - /cli/files/npm-shrinkwrap.json
13 - /cli/v11/configuring-npm/npm-shrinkwrap.json
14 - /cli/v11/files/npm-shrinkwrap-json
15 - /cli/v11/files/npm-shrinkwrap.json
24 - - /configuring-npm/npm-shrinkwrap-json
25 - - /configuring-npm/npm-shrinkwrap.json
26 - - /files/npm-shrinkwrap-json
27 - - /files/npm-shrinkwrap.json
16 ---
17
18 ### Description
content/cli/v11/configuring-npm/npmrc.mdx
+1 -7
@@ -1,20 +1,14 @@
1 ---
2 -title: npmrc
2 +title: .npmrc
3 section: 5
4 description: The npm config files
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/configuring-npm/npmrc.md
8 redirect_from:
9 - - /cli-documentation/configuring-npm/npmrc
10 - - /cli-documentation/files/npmrc
9 - /cli-documentation/v11/configuring-npm/npmrc
10 - /cli-documentation/v11/files/npmrc
13 - - /cli/configuring-npm/npmrc
14 - - /cli/files/npmrc
11 - /cli/v11/files/npmrc
16 - - /configuring-npm/npmrc
17 - - /files/npmrc
12 ---
13
14 ### Description
content/cli/v11/configuring-npm/package-json.mdx
-12
@@ -6,25 +6,13 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/configuring-npm/package-json.md
8 redirect_from:
9 - - /cli-documentation/configuring-npm/package-json
10 - - /cli-documentation/configuring-npm/package.json
11 - - /cli-documentation/files/package-json
12 - - /cli-documentation/files/package.json
9 - /cli-documentation/v11/configuring-npm/package-json
10 - /cli-documentation/v11/configuring-npm/package.json
11 - /cli-documentation/v11/files/package-json
12 - /cli-documentation/v11/files/package.json
17 - - /cli/configuring-npm/package-json
18 - - /cli/configuring-npm/package.json
19 - - /cli/files/package-json
20 - - /cli/files/package.json
13 - /cli/v11/configuring-npm/package.json
14 - /cli/v11/files/package-json
15 - /cli/v11/files/package.json
24 - - /configuring-npm/package-json
25 - - /configuring-npm/package.json
26 - - /files/package-json
27 - - /files/package.json
16 ---
17
18 ### Description
content/cli/v11/configuring-npm/package-lock-json.mdx
-12
@@ -6,25 +6,13 @@ github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/configuring-npm/package-lock-json.md
8 redirect_from:
9 - - /cli-documentation/configuring-npm/package-lock-json
10 - - /cli-documentation/configuring-npm/package-lock.json
11 - - /cli-documentation/files/package-lock-json
12 - - /cli-documentation/files/package-lock.json
9 - /cli-documentation/v11/configuring-npm/package-lock-json
10 - /cli-documentation/v11/configuring-npm/package-lock.json
11 - /cli-documentation/v11/files/package-lock-json
12 - /cli-documentation/v11/files/package-lock.json
17 - - /cli/configuring-npm/package-lock-json
18 - - /cli/configuring-npm/package-lock.json
19 - - /cli/files/package-lock-json
20 - - /cli/files/package-lock.json
13 - /cli/v11/configuring-npm/package-lock.json
14 - /cli/v11/files/package-lock-json
15 - /cli/v11/files/package-lock.json
24 - - /configuring-npm/package-lock-json
25 - - /configuring-npm/package-lock.json
26 - - /files/package-lock-json
27 - - /files/package-lock.json
16 ---
17
18 ### Description
content/cli/v11/index.mdx
-4
@@ -5,12 +5,8 @@ github_repo: npm/cli
5 github_branch: latest
6 github_path: docs/lib/content/nav.yml
7 redirect_from:
8 - - /cli
9 - - /cli-documentation
10 - - /cli-documentation/index
8 - /cli-documentation/v11
9 - /cli-documentation/v11/index
13 - - /cli/index
10 - /cli/v11/index
11 ---
12
content/cli/v11/using-npm/changelog.mdx
-6
@@ -4,15 +4,9 @@ github_repo: npm/cli
4 github_branch: latest
5 github_path: CHANGELOG.md
6 redirect_from:
7 - - /cli-documentation/misc/changelog
8 - - /cli-documentation/using-npm/changelog
7 - /cli-documentation/v11/misc/changelog
8 - /cli-documentation/v11/using-npm/changelog
11 - - /cli/misc/changelog
12 - - /cli/using-npm/changelog
9 - /cli/v11/misc/changelog
14 - - /misc/changelog
15 - - /using-npm/changelog
10 ---
11
12 ## [11.9.0](https://github.com/npm/cli/compare/v11.8.0...v11.9.0) (2026-02-04)
content/cli/v11/using-npm/config.mdx
+15 -8
@@ -1,20 +1,14 @@
1 ---
2 -title: config
2 +title: Config
3 section: 7
4 -description: More than you probably want to know about npm configuration
4 +description: About npm configuration
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/config.md
8 redirect_from:
9 - - /cli-documentation/misc/config
10 - - /cli-documentation/using-npm/config
9 - /cli-documentation/v11/misc/config
10 - /cli-documentation/v11/using-npm/config
13 - - /cli/misc/config
14 - - /cli/using-npm/config
11 - /cli/v11/misc/config
16 - - /misc/config
17 - - /using-npm/config
12 ---
13
14 ### Description
@@ -196,6 +190,8 @@ If passed to `npm install`, will rebuild the npm tree such that only versions th
190
191 If the requested version is a `dist-tag` and the given tag does not pass the `--before` filter, the most recent version less than or equal to that tag will be used. For example, `foo@latest` might install `foo@1.2` even though `latest` is `2.0`.
192
193 +This config cannot be used with: `min-release-age`
194 +
195 #### `bin-links`
196
197 - Default: true
@@ -789,6 +785,17 @@ Commit message which is used by `npm version` when creating version commit.
785
786 Any "%s" in the message will be replaced with the version number.
787
788 +#### `min-release-age`
789 +
790 +- Default: null
791 +- Type: null or Number
792 +
793 +If set, npm will build the npm tree such that only versions that were available more than the given number of days ago will be installed. If there are no versions available for the current set of dependencies, the command will error.
794 +
795 +This flag is a complement to `before`, which accepts an exact date instead of a relative number of days.
796 +
797 +This config cannot be used with: `before`
798 +
799 #### `name`
800
801 - Default: null
content/cli/v11/using-npm/dependency-selectors.mdx
+1 -7
@@ -1,20 +1,14 @@
1 ---
2 -title: Dependency Selector Syntax & Querying
2 +title: Dependency Selectors
3 section: 7
4 description: Dependency Selector Syntax & Querying
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/dependency-selectors.md
8 redirect_from:
9 - - /cli-documentation/misc/dependency-selectors
10 - - /cli-documentation/using-npm/dependency-selectors
9 - /cli-documentation/v11/misc/dependency-selectors
10 - /cli-documentation/v11/using-npm/dependency-selectors
13 - - /cli/misc/dependency-selectors
14 - - /cli/using-npm/dependency-selectors
11 - /cli/v11/misc/dependency-selectors
16 - - /misc/dependency-selectors
17 - - /using-npm/dependency-selectors
12 ---
13
14 ### Description
content/cli/v11/using-npm/developers.mdx
+2 -8
@@ -1,20 +1,14 @@
1 ---
2 -title: developers
2 +title: Developers
3 section: 7
4 -description: Developer Guide
4 +description: Developer guide
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/developers.md
8 redirect_from:
9 - - /cli-documentation/misc/developers
10 - - /cli-documentation/using-npm/developers
9 - /cli-documentation/v11/misc/developers
10 - /cli-documentation/v11/using-npm/developers
13 - - /cli/misc/developers
14 - - /cli/using-npm/developers
11 - /cli/v11/misc/developers
16 - - /misc/developers
17 - - /using-npm/developers
12 ---
13
14 ### Description
content/cli/v11/using-npm/index.mdx
-12
@@ -5,25 +5,13 @@ github_repo: npm/cli
5 github_branch: latest
6 github_path: docs/lib/content/nav.yml
7 redirect_from:
8 - - /cli-documentation/misc
9 - - /cli-documentation/misc/index
10 - - /cli-documentation/using-npm
11 - - /cli-documentation/using-npm/index
8 - /cli-documentation/v11/misc
9 - /cli-documentation/v11/misc/index
10 - /cli-documentation/v11/using-npm
11 - /cli-documentation/v11/using-npm/index
16 - - /cli/misc
17 - - /cli/misc/index
18 - - /cli/using-npm
19 - - /cli/using-npm/index
12 - /cli/v11/misc
13 - /cli/v11/misc/index
14 - /cli/v11/using-npm/index
23 - - /misc
24 - - /misc/index
25 - - /using-npm
26 - - /using-npm/index
15 ---
16
17 <Index depth="1" />
content/cli/v11/using-npm/logging.mdx
+1 -7
@@ -1,20 +1,14 @@
1 ---
2 title: Logging
3 section: 7
4 -description: Why, What & How We Log
4 +description: Why, What & How we Log
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/logging.md
8 redirect_from:
9 - - /cli-documentation/misc/logging
10 - - /cli-documentation/using-npm/logging
9 - /cli-documentation/v11/misc/logging
10 - /cli-documentation/v11/using-npm/logging
13 - - /cli/misc/logging
14 - - /cli/using-npm/logging
11 - /cli/v11/misc/logging
16 - - /misc/logging
17 - - /using-npm/logging
12 ---
13
14 ### Description
content/cli/v11/using-npm/orgs.mdx
+2 -8
@@ -1,20 +1,14 @@
1 ---
2 -title: orgs
2 +title: Organizations
3 section: 7
4 -description: Working with Teams & Orgs
4 +description: Working with teams & organizations
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/orgs.md
8 redirect_from:
9 - - /cli-documentation/misc/orgs
10 - - /cli-documentation/using-npm/orgs
9 - /cli-documentation/v11/misc/orgs
10 - /cli-documentation/v11/using-npm/orgs
13 - - /cli/misc/orgs
14 - - /cli/using-npm/orgs
11 - /cli/v11/misc/orgs
16 - - /misc/orgs
17 - - /using-npm/orgs
12 ---
13
14 ### Description
content/cli/v11/using-npm/package-spec.mdx
+1 -7
@@ -1,20 +1,14 @@
1 ---
2 -title: package-spec
2 +title: Package spec
3 section: 7
4 description: Package name specifier
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/package-spec.md
8 redirect_from:
9 - - /cli-documentation/misc/package-spec
10 - - /cli-documentation/using-npm/package-spec
9 - /cli-documentation/v11/misc/package-spec
10 - /cli-documentation/v11/using-npm/package-spec
13 - - /cli/misc/package-spec
14 - - /cli/using-npm/package-spec
11 - /cli/v11/misc/package-spec
16 - - /misc/package-spec
17 - - /using-npm/package-spec
12 ---
13
14 ### Description
content/cli/v11/using-npm/registry.mdx
+1 -7
@@ -1,20 +1,14 @@
1 ---
2 -title: registry
2 +title: Registry
3 section: 7
4 description: The JavaScript Package Registry
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/registry.md
8 redirect_from:
9 - - /cli-documentation/misc/registry
10 - - /cli-documentation/using-npm/registry
9 - /cli-documentation/v11/misc/registry
10 - /cli-documentation/v11/using-npm/registry
13 - - /cli/misc/registry
14 - - /cli/using-npm/registry
11 - /cli/v11/misc/registry
16 - - /misc/registry
17 - - /using-npm/registry
12 ---
13
14 ### Description
content/cli/v11/using-npm/removal.mdx
+2 -14
@@ -1,30 +1,18 @@
1 ---
2 -title: removal
2 +title: Removal
3 section: 7
4 -description: Cleaning the Slate
4 +description: Cleaning the slate
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/removal.md
8 redirect_from:
9 - - /cli-documentation/misc/removal
10 - - /cli-documentation/misc/removing-npm
11 - - /cli-documentation/using-npm/removal
12 - - /cli-documentation/using-npm/removing-npm
9 - /cli-documentation/v11/misc/removal
10 - /cli-documentation/v11/misc/removing-npm
11 - /cli-documentation/v11/using-npm/removal
12 - /cli-documentation/v11/using-npm/removing-npm
17 - - /cli/misc/removal
18 - - /cli/misc/removing-npm
19 - - /cli/using-npm/removal
20 - - /cli/using-npm/removing-npm
13 - /cli/v11/misc/removal
14 - /cli/v11/misc/removing-npm
15 - /cli/v11/using-npm/removing-npm
24 - - /misc/removal
25 - - /misc/removing-npm
26 - - /using-npm/removal
27 - - /using-npm/removing-npm
16 ---
17
18 ### Synopsis
content/cli/v11/using-npm/scope.mdx
+1 -13
@@ -1,30 +1,18 @@
1 ---
2 -title: scope
2 +title: Scope
3 section: 7
4 description: Scoped packages
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/scope.md
8 redirect_from:
9 - - /cli-documentation/misc/npm-scope
10 - - /cli-documentation/misc/scope
11 - - /cli-documentation/using-npm/npm-scope
12 - - /cli-documentation/using-npm/scope
9 - /cli-documentation/v11/misc/npm-scope
10 - /cli-documentation/v11/misc/scope
11 - /cli-documentation/v11/using-npm/npm-scope
12 - /cli-documentation/v11/using-npm/scope
17 - - /cli/misc/npm-scope
18 - - /cli/misc/scope
19 - - /cli/using-npm/npm-scope
20 - - /cli/using-npm/scope
13 - /cli/v11/misc/npm-scope
14 - /cli/v11/misc/scope
15 - /cli/v11/using-npm/npm-scope
24 - - /misc/npm-scope
25 - - /misc/scope
26 - - /using-npm/npm-scope
27 - - /using-npm/scope
16 ---
17
18 ### Description
content/cli/v11/using-npm/scripts.mdx
+1 -7
@@ -1,20 +1,14 @@
1 ---
2 -title: scripts
2 +title: Scripts
3 section: 7
4 description: How npm handles the "scripts" field
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/scripts.md
8 redirect_from:
9 - - /cli-documentation/misc/scripts
10 - - /cli-documentation/using-npm/scripts
9 - /cli-documentation/v11/misc/scripts
10 - /cli-documentation/v11/using-npm/scripts
13 - - /cli/misc/scripts
14 - - /cli/using-npm/scripts
11 - /cli/v11/misc/scripts
16 - - /misc/scripts
17 - - /using-npm/scripts
12 ---
13
14 ### Description
content/cli/v11/using-npm/workspaces.mdx
+1 -7
@@ -1,20 +1,14 @@
1 ---
2 -title: workspaces
2 +title: Workspaces
3 section: 7
4 description: Working with workspaces
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/workspaces.md
8 redirect_from:
9 - - /cli-documentation/misc/workspaces
10 - - /cli-documentation/using-npm/workspaces
9 - /cli-documentation/v11/misc/workspaces
10 - /cli-documentation/v11/using-npm/workspaces
13 - - /cli/misc/workspaces
14 - - /cli/using-npm/workspaces
11 - /cli/v11/misc/workspaces
16 - - /misc/workspaces
17 - - /using-npm/workspaces
12 ---
13
14 ### Description
content/nav.yml
+29 -16
@@ -1596,11 +1596,11 @@
1596 - title: Changelog
1597 url: /cli/v10/using-npm/changelog
1598 description: Changelog notes for each version
1599 - - title: Version 11.9.0
1599 + - title: Version 11.10.0
1600 shortName: v11
1601 url: /cli/v11
1602 - default: true
1603 - type: latest
1602 + default: false
1603 + type: legacy
1604 children:
1605 - title: CLI Commands
1606 shortName: Commands
@@ -1608,7 +1608,7 @@
1608 children:
1609 - title: npm
1610 url: /cli/v11/commands/npm
1611 - description: JavaScript package manager
1611 + description: javascript package manager
1612 - title: npm access
1613 url: /cli/v11/commands/npm-access
1614 description: Set access level on published packages
@@ -1620,22 +1620,22 @@
1620 description: Run a security audit
1621 - title: npm bugs
1622 url: /cli/v11/commands/npm-bugs
1623 - description: Bugs for a package in a web browser maybe
1623 + description: Report bugs for a package in a web browser
1624 - title: npm cache
1625 url: /cli/v11/commands/npm-cache
1626 description: Manipulates packages cache
1627 - title: npm ci
1628 url: /cli/v11/commands/npm-ci
1629 - description: Install a project with a clean slate
1629 + description: Clean install a project
1630 - title: npm completion
1631 url: /cli/v11/commands/npm-completion
1632 - description: Tab completion for npm
1632 + description: Tab Completion for npm
1633 - title: npm config
1634 url: /cli/v11/commands/npm-config
1635 description: Manage the npm configuration files
1636 - title: npm dedupe
1637 url: /cli/v11/commands/npm-dedupe
1638 - description: Reduce duplication
1638 + description: Reduce duplication in the package tree
1639 - title: npm deprecate
1640 url: /cli/v11/commands/npm-deprecate
1641 description: Deprecate a version of a package
@@ -1647,16 +1647,16 @@
1647 description: Modify package distribution tags
1648 - title: npm docs
1649 url: /cli/v11/commands/npm-docs
1650 - description: Docs for a package in a web browser maybe
1650 + description: Open documentation for a package in a web browser
1651 - title: npm doctor
1652 url: /cli/v11/commands/npm-doctor
1653 - description: Check your environments
1653 + description: Check the health of your npm environment
1654 - title: npm edit
1655 url: /cli/v11/commands/npm-edit
1656 description: Edit an installed package
1657 - title: npm exec
1658 url: /cli/v11/commands/npm-exec
1659 - description: Run a command from an npm package
1659 + description: Run a command from a local or remote npm package
1660 - title: npm explain
1661 url: /cli/v11/commands/npm-explain
1662 description: Explain installed packages
@@ -1669,12 +1669,15 @@
1669 - title: npm fund
1670 url: /cli/v11/commands/npm-fund
1671 description: Retrieve funding information
1672 + - title: npm get
1673 + url: /cli/v11/commands/npm-get
1674 + description: Get a value from the npm configuration
1675 - title: npm help
1676 url: /cli/v11/commands/npm-help
1674 - description: Search npm help documentation
1677 + description: Get help on npm
1678 - title: npm help-search
1679 url: /cli/v11/commands/npm-help-search
1677 - description: Get help on npm
1680 + description: Search npm help documentation
1681 - title: npm init
1682 url: /cli/v11/commands/npm-init
1683 description: Create a package.json file
@@ -1690,6 +1693,9 @@
1693 - title: npm link
1694 url: /cli/v11/commands/npm-link
1695 description: Symlink a package folder
1696 + - title: npm ll
1697 + url: /cli/v11/commands/npm-ll
1698 + description: List installed packages
1699 - title: npm login
1700 url: /cli/v11/commands/npm-login
1701 description: Login to a registry user account
@@ -1731,7 +1737,7 @@
1737 description: Publish a package
1738 - title: npm query
1739 url: /cli/v11/commands/npm-query
1734 - description: Retrieve a filtered list of packages
1740 + description: Dependency selector query
1741 - title: npm rebuild
1742 url: /cli/v11/commands/npm-rebuild
1743 description: Rebuild a package
@@ -1753,6 +1759,9 @@
1759 - title: npm search
1760 url: /cli/v11/commands/npm-search
1761 description: Search for packages
1762 + - title: npm set
1763 + url: /cli/v11/commands/npm-set
1764 + description: Set a value in the npm configuration
1765 - title: npm shrinkwrap
1766 url: /cli/v11/commands/npm-shrinkwrap
1767 description: Lock down dependency versions for publication
@@ -1777,6 +1786,10 @@
1786 - title: npm token
1787 url: /cli/v11/commands/npm-token
1788 description: Manage your authentication tokens
1789 + - title: npm trust
1790 + url: /cli/v11/commands/npm-trust
1791 + description: Manage trusted publishing relationships between packages and CI/CD
1792 + providers
1793 - title: npm undeprecate
1794 url: /cli/v11/commands/npm-undeprecate
1795 description: Undeprecate a version of a package
@@ -1791,7 +1804,7 @@
1804 description: Remove an item from your favorite packages
1805 - title: npm update
1806 url: /cli/v11/commands/npm-update
1794 - description: Update a package
1807 + description: Update packages
1808 - title: npm version
1809 url: /cli/v11/commands/npm-version
1810 description: Bump a package version
@@ -1803,7 +1816,7 @@
1816 description: Display npm username
1817 - title: npx
1818 url: /cli/v11/commands/npx
1806 - description: Run a command from an npm package
1819 + description: Run a command from a local or remote npm package
1820 - title: Configuring npm
1821 shortName: Configuring
1822 url: /cli/v11/configuring-npm