@@ -16,24 +16,14 @@ This lets you list, create and revoke authentication tokens.
16
16
Shows a table of all active authentication tokens. You can request
17
17
this as JSON with ` --json ` or tab-separated values with ` --parseable ` .
18
18
19
- ``` bash
20
- +--------+---------+------------+----------+----------------+
21
- | id | token | created | read-only | CIDR whitelist |
22
- +--------+---------+------------+----------+----------------+
23
- | 7f3134 | 1fa9ba… | 2017-10-02 | yes | |
24
- +--------+---------+------------+----------+----------------+
25
- | c03241 | af7aef… | 2017-10-02 | no | 192.168.0.1/24 |
26
- +--------+---------+------------+----------+----------------+
27
- | e0cf92 | 3a436a… | 2017-10-02 | no | |
28
- +--------+---------+------------+----------+----------------+
29
- | 63eb9d | 74ef35… | 2017-09-28 | no | |
30
- +--------+---------+------------+----------+----------------+
31
- | 2daaa8 | cbad5f… | 2017-09-26 | no | |
32
- +--------+---------+------------+----------+----------------+
33
- | 68c2fe | 127e51… | 2017-09-23 | no | |
34
- +--------+---------+------------+----------+----------------+
35
- | 6334e1 | 1dadd1… | 2017-09-23 | no | |
36
- +--------+---------+------------+----------+----------------+
19
+ ```
20
+ Read only token npm_1f… with id 7f3134 created 2017-10-21
21
+
22
+ Publish token npm_af… with id c03241 created 2017-10-02
23
+ with IP Whitelist: 192.168.0.1/24
24
+
25
+ Publish token npm_… with id e0cf92 created 2017-10-02
26
+
37
27
```
38
28
39
29
* ` npm token create [--read-only] [--cidr=<cidr-ranges>] ` :
@@ -49,16 +39,8 @@ This lets you list, create and revoke authentication tokens.
49
39
website] ( https://docs.npmjs.com/creating-and-viewing-access-tokens )
50
40
for more information on generating automation tokens.
51
41
52
- ``` bash
53
- +----------------+--------------------------------------+
54
- | token | a73c9572-f1b9-8983-983d-ba3ac3cc913d |
55
- +----------------+--------------------------------------+
56
- | cidr_whitelist | |
57
- +----------------+--------------------------------------+
58
- | readonly | false |
59
- +----------------+--------------------------------------+
60
- | created | 2017-10-02T07:52:24.838Z |
61
- +----------------+--------------------------------------+
42
+ ```
43
+ Created publish token a73c9572-f1b9-8983-983d-ba3ac3cc913d
62
44
```
63
45
64
46
* ` npm token revoke <token|id> ` :
0 commit comments