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       · --------+---------+------------+----------+----------------+   |   id
21         | token   | created    | read-only | CIDR whitelist |
22
23       · --------+---------+------------+----------+----------------+ | 7f3134
24         | 1fa9ba… | 2017-10-02 | yes      |                |
25
26       · --------+---------+------------+----------+----------------+ | c03241
27         | af7aef… | 2017-10-02 | no       | 192.168.0.1/24 |
28
29       · --------+---------+------------+----------+----------------+ | e0cf92
30         | 3a436a… | 2017-10-02 | no       |                |
31
32       · --------+---------+------------+----------+----------------+ | 63eb9d
33         | 74ef35… | 2017-09-28 | no       |                |
34
35       · --------+---------+------------+----------+----------------+ | 2daaa8
36         | cbad5f… | 2017-09-26 | no       |                |
37
38       · --------+---------+------------+----------+----------------+ | 68c2fe
39         | 127e51… | 2017-09-23 | no       |                |
40
41       · --------+---------+------------+----------+----------------+ | 6334e1
42         | 1dadd1… | 2017-09-23 | no       |                |
43
44       · --------+---------+------------+----------+----------------+
45
46       · npm  token  create [--read-only] [--cidr=<cidr-ranges>]: Create a new
47         authentication token. It can be --read-only or accept a list of  CIDR
48         https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing   ranges
49         to limit use of this token to. This will prompt you  for  your  pass‐
50         word, and, if you have two-factor authentication enabled, an otp.
51
52
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         +----------------+--------------------------------------+
62
63       · npm  token  revoke  <token|id>: This removes an authentication token,
64         making it immediately unusable. This can accept both complete  tokens
65         (as  you get back from npm token create and will find in your .npmrc)
66         and ids as seen in the npm token list output.  This will  NOT  accept
67         the truncated token found in npm token list output.
68
69
70
71
72                                 October 2019                     NPM-TOKEN(1)
Impressum