npm token
管理您的身份验证令牌
概要
npm token list [--json|--parseable]
npm token create [--read-only] [--cidr=1.1.1.1/24,2.2.2.2/16]
npm token revoke <id|token>
注意:此命令对工作区无感知。
描述
这使您可以列出、创建和撤销身份验证令牌。
npm token list
:显示所有活动身份验证令牌的表格。您可以将其请求为带有--json
的 JSON 或带有--parseable
的制表符分隔值。
+--------+---------+------------+----------+----------------+
| id | token | created | read-only | CIDR whitelist |
+--------+---------+------------+----------+----------------+
| 7f3134 | 1fa9ba… | 2017-10-02 | yes | |
+--------+---------+------------+----------+----------------+
| c03241 | af7aef… | 2017-10-02 | no | 192.168.0.1/24 |
+--------+---------+------------+----------+----------------+
| e0cf92 | 3a436a… | 2017-10-02 | no | |
+--------+---------+------------+----------+----------------+
| 63eb9d | 74ef35… | 2017-09-28 | no | |
+--------+---------+------------+----------+----------------+
| 2daaa8 | cbad5f… | 2017-09-26 | no | |
+--------+---------+------------+----------+----------------+
| 68c2fe | 127e51… | 2017-09-23 | no | |
+--------+---------+------------+----------+----------------+
| 6334e1 | 1dadd1… | 2017-09-23 | no | |
+--------+---------+------------+----------+----------------+
NhEvGddQ1YoxtGgJt3RlnAaMLKTyjXs23LvPcSnICxp0rn1PxLvwtpdhAmOmR5Se0AxodlOyjkxo4Y4wlCtHffJwMkCaQjnD6CZqdxg3+FDFjQIa2bLUvZ/4/4j908x3O8T+Q9+QiiyoG9p4DHKrtgmDmJpgWWX7iTGt72ddAZMMYIxR6Du/xb1GvxoBny4XeqtzFdXJHUHRqqkrkg+ma8nszNHWtrQ7RS2qV62reGLBzg8x3YOJGY9fzYT/41FUOwZxt23n1I9pkXLpz36xSmPiiBgjYddvQUDwFfEQcNMaJlJ0cCdZm9+HhL9FmOpognyawWaCRzqlYqK29F0skjjp5o0Kz825oclpE8xHD9OoDc6WJTEbFK2ws6GjaVcAFZKLbhk9KNFjL3oT1oe5kAj/nQzdPREHaiRNc2pGVtjEiKKdD8WNC/gs9tq0hmtn5D6O4Mo7vWa66tTrKfouolu0PZ3WMLS+Et1KaVVDtAw=
hu1EYHQzooPUO1T6AuxVIh/IqyeeNeBtcidGT9JU3llRxf9EsX/MCtBcknWkFlkvd2LzRMsz0Cv6ZFl0HTS9w/J+dirI8Kul4koYjVAu63AKN2MzYwpSwymtei6/nZl6pNN8bfA8xXNnHCWdzng5jrYzY5VrS9ATI2qhGMtmhBESssuzjp7In40Z9uwPalpFS0tb/4qlR14mF/yeEh9Xx+kK2XL7GJ6huZPHkgIaP/I=
+----------------+--------------------------------------+
| token | a73c9572-f1b9-8983-983d-ba3ac3cc913d |
+----------------+--------------------------------------+
| cidr_whitelist | |
+----------------+--------------------------------------+
| readonly | false |
+----------------+--------------------------------------+
| created | 2017-10-02T07:52:24.838Z |
+----------------+--------------------------------------+
- 4P4TrzzAgAU3NdmimGZWJ9vn4BIdiTN+tIY+OwvnSW11TD8hMJ5t3hl022rs78txYMRXewq6J+mcYMp/3f48qlYKjEqD+pcdY0kCXkWjjU3A1ZHR3xkzBFbDuzE6LnT0UgN6GjIuem7VxdQ9NW1Z1hGZRH8ROBnZy32mSkBHklwLamV8DcSk7VBrO3xqw2tRgmzwfHZjqdolQzXMlyP4++CnExziL39N95sYWYODDsmGUscdtf/IaaRDv16VZGt9NxuEqrrqcteOfMApAKUpPkTWtG/o/Lojk7lirgm7mLvuQMhqQFjt6zzwokYJqhs3B5jJjlYmgr2+U19CQqE2ssdiXBbSAV593g2FdoVaBx3KNql0e8tyqxTfD7RzD9hFptWpdpeJX8x5kJ2MD2rFckVelJYLkI4pT9gt7HwPQgZSdgpIAplnjovRNfUI1MXQJCGeG0Ecie/bGM9s5P3PHm91IMjCW/GJqY6duuMb+q3sviJlibRBzDt2hniGo5uexh87EaqbF/c5hiVT8ENk6FXfHOj2vV35CZTm3v3sJeZ+uDDl0R1QslLhlISXxDvCC9fiLpWTLBOrr8YPPSHzmWaXQOhjvWEfFrN6V5Q3vbs=
配置
read-only
- b0hrlHHbrsBd1+jTjC8F8DEDNkl6svjnmv4dO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