1NPM-TOKEN(1)                                                      NPM-TOKEN(1)
2
3
4

NAME

6       npm-token - Manage your authentication tokens
7
8   Synopsis
9           npm token list [--json|--parseable]
10           npm token create [--read-only] [--cidr=1.1.1.1/24,2.2.2.2/16]
11           npm token revoke <id|token>
12
13   Description
14       This lets you list, create and revoke authentication tokens.
15
16       · npm  token  list:  Shows a table of all active authentication tokens.
17         You can request this as JSON with --json or tab-separated values with
18         --parseable.
19
20
21         +--------+---------+------------+----------+----------------+
22         | id     | token   | created    | read-only | CIDR whitelist |
23         +--------+---------+------------+----------+----------------+
24         | 7f3134 | 1fa9ba… | 2017-10-02 | yes      |                |
25         +--------+---------+------------+----------+----------------+
26         | c03241 | af7aef… | 2017-10-02 | no       | 192.168.0.1/24 |
27         +--------+---------+------------+----------+----------------+
28         | e0cf92 | 3a436a… | 2017-10-02 | no       |                |
29         +--------+---------+------------+----------+----------------+
30         | 63eb9d | 74ef35… | 2017-09-28 | no       |                |
31         +--------+---------+------------+----------+----------------+
32         | 2daaa8 | cbad5f… | 2017-09-26 | no       |                |
33         +--------+---------+------------+----------+----------------+
34         | 68c2fe | 127e51… | 2017-09-23 | no       |                |
35         +--------+---------+------------+----------+----------------+
36         | 6334e1 | 1dadd1… | 2017-09-23 | no       |                |
37         +--------+---------+------------+----------+----------------+
38
39       · npm  token  create [--read-only] [--cidr=<cidr-ranges>]: Create a new
40         authentication token. It can be --read-only or accept a list of  CIDR
41         https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing   ranges
42         to limit use of this token to. This will prompt you  for  your  pass‐
43         word, and, if you have two-factor authentication enabled, an otp.
44
45
46         +----------------+--------------------------------------+
47         | token          | a73c9572-f1b9-8983-983d-ba3ac3cc913d |
48         +----------------+--------------------------------------+
49         | cidr_whitelist |                                      |
50         +----------------+--------------------------------------+
51         | readonly       | false                                |
52         +----------------+--------------------------------------+
53         | created        | 2017-10-02T07:52:24.838Z             |
54         +----------------+--------------------------------------+
55
56       · npm  token  revoke  <token|id>: This removes an authentication token,
57         making it immediately unusable. This can accept both complete  tokens
58         (as  you get back from npm token create and will find in your .npmrc)
59         and ids as seen in the npm token list output.  This will  NOT  accept
60         the truncated token found in npm token list output.
61
62
63
64
65                                 February 2021                    NPM-TOKEN(1)
Impressum