CLI documentation update from CI
npm CLI robot committed
Dec 7, 2022 at 02:39 UTC
fe6b7300c487d9c7bb503664a4321a6a213a2550
3 files changed
+39
-116
content/cli/v7/commands/npm-token.md
+13
-35
@@ -20,41 +20,17 @@ redirect_from:
20
---
21
22
### Synopsis
23
-
24
-<!-- AUTOGENERATED USAGE DESCRIPTIONS START -->
25
-<!-- automatically generated, do not edit manually -->
26
-<!-- see lib/commands/token.js -->
27
-
23
```bash
24
npm token list [--json|--parseable]
25
npm token create [--read-only] [--cidr=1.1.1.1/24,2.2.2.2/16]
26
npm token revoke <id|token>
27
```
28
34
-<!-- automatically generated, do not edit manually -->
35
-<!-- see lib/commands/token.js -->
36
-
37
-<!-- AUTOGENERATED USAGE DESCRIPTIONS END -->
38
-
39
-<Note>
40
-
41
-**Note:** This command is unaware of workspaces.
42
-
43
-</Note>
29
+Note: This command is unaware of workspaces.
30
31
### Description
32
47
-This command lets you:
48
-
49
-* List all authentication tokens
50
-* Revoke any authentication token
51
-* Generate personal access tokens
52
-
53
-<Note>
54
-
55
-**Note:** To generate granular access tokens, you must use the website. For more information, see "[Creating and viewing access tokens](https://docs.npmjs.com/creating-and-viewing-access-tokens)."
56
-
57
-</Note>
33
+This lets you list, create and revoke authentication tokens.
34
35
* `npm token list`:
36
Shows a table of all active authentication tokens. You can request
@@ -88,8 +64,10 @@ This command lets you:
64
your password, and, if you have two-factor authentication enabled, an
65
otp.
66
91
- The CLI cannot generate automation tokens or granular access tokens. For more information on generating tokens, see "[Creating and viewing access tokens](https://docs.npmjs.com/creating-and-viewing-access-tokens)."
92
- .
67
+ Currently, the cli can not generate automation tokens. Please refer to
68
+ the [docs
69
+ website](https://docs.npmjs.com/creating-and-viewing-access-tokens)
70
+ for more information on generating automation tokens.
71
72
```bash
73
+----------------+--------------------------------------+
@@ -166,10 +144,10 @@ password, npm will prompt on the command line for one.
144
145
### See Also
146
169
-* [npm adduser](/commands/npm-adduser)
170
-* [npm registry](/using-npm/registry)
171
-* [npm config](/commands/npm-config)
172
-* [npmrc](/configuring-npm/npmrc)
173
-* [npm owner](/commands/npm-owner)
174
-* [npm whoami](/commands/npm-whoami)
175
-* [npm profile](/commands/npm-profile)
147
+* [npm adduser](/cli/v7/commands/npm-adduser)
148
+* [npm registry](/cli/v7/using-npm/registry)
149
+* [npm config](/cli/v7/commands/npm-config)
150
+* [npmrc](/cli/v7/configuring-npm/npmrc)
151
+* [npm owner](/cli/v7/commands/npm-owner)
152
+* [npm whoami](/cli/v7/commands/npm-whoami)
153
+* [npm profile](/cli/v7/commands/npm-profile)
content/cli/v8/commands/npm-token.md
+13
-30
@@ -27,30 +27,11 @@ npm token revoke <id|token>
27
npm token create [--read-only] [--cidr=list]
28
```
29
30
-<!-- automatically generated, do not edit manually -->
31
-<!-- see lib/commands/token.js -->
32
-
33
-<!-- AUTOGENERATED USAGE DESCRIPTIONS END -->
34
-
35
-<Note>
36
-
37
-**Note:** This command is unaware of workspaces.
38
-
39
-</Note>
30
+Note: This command is unaware of workspaces.
31
32
### Description
33
43
-This command lets you:
44
-
45
-* List all authentication tokens
46
-* Revoke any authentication token
47
-* Generate personal access tokens
48
-
49
-<Note>
50
-
51
-**Note:** To generate granular access tokens, you must use the website. For more information, see "[Creating and viewing access tokens](https://docs.npmjs.com/creating-and-viewing-access-tokens)."
52
-
53
-</Note>
34
+This lets you list, create and revoke authentication tokens.
35
36
* `npm token list`:
37
Shows a table of all active authentication tokens. You can request
@@ -84,8 +65,10 @@ This command lets you:
65
your password, and, if you have two-factor authentication enabled, an
66
otp.
67
87
- The CLI cannot generate automation tokens or granular access tokens. For more information on generating tokens, see "[Creating and viewing access tokens](https://docs.npmjs.com/creating-and-viewing-access-tokens)."
88
- .
68
+ Currently, the cli can not generate automation tokens. Please refer to
69
+ the [docs
70
+ website](https://docs.npmjs.com/creating-and-viewing-access-tokens)
71
+ for more information on generating automation tokens.
72
73
```bash
74
+----------------+--------------------------------------+
@@ -145,10 +128,10 @@ password, npm will prompt on the command line for one.
128
129
### See Also
130
148
-* [npm adduser](/commands/npm-adduser)
149
-* [npm registry](/using-npm/registry)
150
-* [npm config](/commands/npm-config)
151
-* [npmrc](/configuring-npm/npmrc)
152
-* [npm owner](/commands/npm-owner)
153
-* [npm whoami](/commands/npm-whoami)
154
-* [npm profile](/commands/npm-profile)
131
+* [npm adduser](/cli/v8/commands/npm-adduser)
132
+* [npm registry](/cli/v8/using-npm/registry)
133
+* [npm config](/cli/v8/commands/npm-config)
134
+* [npmrc](/cli/v8/configuring-npm/npmrc)
135
+* [npm owner](/cli/v8/commands/npm-owner)
136
+* [npm whoami](/cli/v8/commands/npm-whoami)
137
+* [npm profile](/cli/v8/commands/npm-profile)
content/cli/v9/commands/npm-token.md
+13
-51
@@ -37,40 +37,17 @@ redirect_from:
37
38
### Synopsis
39
40
-<!-- AUTOGENERATED USAGE DESCRIPTIONS START -->
41
-<!-- automatically generated, do not edit manually -->
42
-<!-- see lib/commands/token.js -->
43
-
40
```bash
41
npm token list
42
npm token revoke <id|token>
43
npm token create [--read-only] [--cidr=list]
44
```
45
50
-<!-- automatically generated, do not edit manually -->
51
-<!-- see lib/commands/token.js -->
52
-
53
-<!-- AUTOGENERATED USAGE DESCRIPTIONS END -->
54
-
55
-<Note>
56
-
57
-**Note:** This command is unaware of workspaces.
58
-
59
-</Note>
46
+Note: This command is unaware of workspaces.
47
48
### Description
49
63
-This command lets you:
64
-
65
-* List all authentication tokens
66
-* Revoke any authentication token
67
-* Generate legacy tokens
68
-
69
-<Note>
70
-
71
-**Note:** To generate granular access tokens, you must use the website. For more information, see "[Creating and viewing access tokens](https://docs.npmjs.com/creating-and-viewing-access-tokens)."
72
-
73
-</Note>
50
+This lets you list, create and revoke authentication tokens.
51
52
* `npm token list`:
53
Shows a table of all active authentication tokens. You can request
@@ -104,8 +81,10 @@ This command lets you:
81
your password, and, if you have two-factor authentication enabled, an
82
otp.
83
107
- The CLI cannot generate automation tokens or granular access tokens. For more information on generating tokens, see "[Creating and viewing access tokens](https://docs.npmjs.com/creating-and-viewing-access-tokens)."
108
- .
84
+ Currently, the cli can not generate automation tokens. Please refer to
85
+ the [docs
86
+ website](https://docs.npmjs.com/creating-and-viewing-access-tokens)
87
+ for more information on generating automation tokens.
88
89
```bash
90
+----------------+--------------------------------------+
@@ -129,9 +108,6 @@ This command lets you:
108
109
### Configuration
110
132
-<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
133
-<!-- automatically generated, do not edit manually -->
134
-<!-- see lib/utils/config/definitions.js -->
111
#### `read-only`
112
113
* Default: false
@@ -140,9 +116,6 @@ This command lets you:
116
This is used to mark a token as unable to publish when configuring limited
117
access tokens with the `npm token create` command.
118
143
-<!-- automatically generated, do not edit manually -->
144
-<!-- see lib/utils/config/definitions.js -->
145
-
119
#### `cidr`
120
121
* Default: null
@@ -151,9 +124,6 @@ access tokens with the `npm token create` command.
124
This is a list of CIDR address to be used when configuring limited access
125
tokens with the `npm token create` command.
126
154
-<!-- automatically generated, do not edit manually -->
155
-<!-- see lib/utils/config/definitions.js -->
156
-
127
#### `registry`
128
129
* Default: "https://registry.npmjs.org/"
@@ -161,9 +131,6 @@ tokens with the `npm token create` command.
131
132
The base URL of the npm registry.
133
164
-<!-- automatically generated, do not edit manually -->
165
-<!-- see lib/utils/config/definitions.js -->
166
-
134
#### `otp`
135
136
* Default: null
@@ -175,17 +142,12 @@ when publishing or changing package permissions with `npm access`.
142
If not set, and a registry response fails with a challenge for a one-time
143
password, npm will prompt on the command line for one.
144
178
-<!-- automatically generated, do not edit manually -->
179
-<!-- see lib/utils/config/definitions.js -->
180
-
181
-<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
182
-
145
### See Also
146
185
-* [npm adduser](/commands/npm-adduser)
186
-* [npm registry](/using-npm/registry)
187
-* [npm config](/commands/npm-config)
188
-* [npmrc](/configuring-npm/npmrc)
189
-* [npm owner](/commands/npm-owner)
190
-* [npm whoami](/commands/npm-whoami)
191
-* [npm profile](/commands/npm-profile)
147
+* [npm adduser](/cli/v9/commands/npm-adduser)
148
+* [npm registry](/cli/v9/using-npm/registry)
149
+* [npm config](/cli/v9/commands/npm-config)
150
+* [npmrc](/cli/v9/configuring-npm/npmrc)
151
+* [npm owner](/cli/v9/commands/npm-owner)
152
+* [npm whoami](/cli/v9/commands/npm-whoami)
153
+* [npm profile](/cli/v9/commands/npm-profile)