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

NAME

6       npm-token - Manage your authentication tokens
7

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

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         | 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         +--------+---------+------------+----------+----------------+
37
38       · npm  token  create [--read-only] [--cidr=<cidr-ranges>]: Create a new
39         authentication token. It can be --read-only or accept a list of  CIDR
40         https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing   ranges
41         to limit use of this token to. This will prompt you  for  your  pass‐
42         word, and, if you have two-factor authentication enabled, an otp.
43
44
45         +----------------+--------------------------------------+
46         | token          | a73c9572-f1b9-8983-983d-ba3ac3cc913d |
47         +----------------+--------------------------------------+
48         | cidr_whitelist |                                      |
49         +----------------+--------------------------------------+
50         | readonly       | false                                |
51         +----------------+--------------------------------------+
52         | created        | 2017-10-02T07:52:24.838Z             |
53         +----------------+--------------------------------------+
54
55       · npm  token  revoke  <token|id>: This removes an authentication token,
56         making it immediately unusable. This can accept both complete  tokens
57         (as  you get back from npm token create and will find in your .npmrc)
58         and ids as seen in the npm token list output.  This will  NOT  accept
59         the truncated token found in npm token list output.
60
61
62
63
64                                  April 2019                      NPM-TOKEN(1)
Impressum