/
home
/
techb158
/
.nvm
/
versions
/
node
/
v16.20.2
/
lib
/
node_modules
/
npm
/
docs
/
content
/
commands
/
/home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/docs/content/commands
mkdir
upload
Name
Size
Mode
Actions
npm-access.md
3359
0644
edit
dl
rm
npm-adduser.md
2315
0644
edit
dl
rm
npm-audit.md
14321
0644
edit
dl
rm
npm-bin.md
898
0644
edit
dl
rm
npm-bugs.md
2963
0644
edit
dl
rm
npm-cache.md
2999
0644
edit
dl
rm
npm-ci.md
9481
0644
edit
dl
rm
npm-completion.md
909
0644
edit
dl
rm
npm-config.md
3705
0644
edit
dl
rm
npm-dedupe.md
8160
0644
edit
dl
rm
npm-deprecate.md
1737
0644
edit
dl
rm
npm-diff.md
8971
0644
edit
dl
rm
npm-dist-tag.md
5079
0644
edit
dl
rm
npm-docs.md
2941
0644
edit
dl
rm
npm-doctor.md
4760
0644
edit
dl
rm
npm-edit.md
1077
0644
edit
dl
rm
npm-exec.md
11209
0644
edit
dl
rm
npm-explain.md
2793
0644
edit
dl
rm
npm-explore.md
1004
0644
edit
dl
rm
npm-find-dupes.md
6064
0644
edit
dl
rm
npm-fund.md
3605
0644
edit
dl
rm
npm-help-search.md
754
0644
edit
dl
rm
npm-help.md
1002
0644
edit
dl
rm
npm-hook.md
2390
0644
edit
dl
rm
npm-init.md
8986
0644
edit
dl
rm
npm-install-ci-test.md
7763
0644
edit
dl
rm
npm-install-test.md
7840
0644
edit
dl
rm
npm-install.md
23133
0644
edit
dl
rm
npm-link.md
11001
0644
edit
dl
rm
npm-logout.md
1746
0644
edit
dl
rm
npm-ls.md
8202
0644
edit
dl
rm
npm-org.md
1967
0644
edit
dl
rm
npm-outdated.md
5769
0644
edit
dl
rm
npm-owner.md
3100
0644
edit
dl
rm
npm-pack.md
3442
0644
edit
dl
rm
npm-ping.md
767
0644
edit
dl
rm
npm-pkg.md
7815
0644
edit
dl
rm
npm-prefix.md
1240
0644
edit
dl
rm
npm-profile.md
3899
0644
edit
dl
rm
npm-prune.md
5410
0644
edit
dl
rm
npm-publish.md
7289
0644
edit
dl
rm
npm-query.md
5069
0644
edit
dl
rm
npm-rebuild.md
4264
0644
edit
dl
rm
npm-repo.md
2721
0644
edit
dl
rm
npm-restart.md
1469
0644
edit
dl
rm
npm-root.md
1080
0644
edit
dl
rm
npm-run-script.md
7355
0644
edit
dl
rm
npm-search.md
3402
0644
edit
dl
rm
npm-set-script.md
2397
0644
edit
dl
rm
npm-shrinkwrap.md
923
0644
edit
dl
rm
npm-star.md
1707
0644
edit
dl
rm
npm-stars.md
741
0644
edit
dl
rm
npm-start.md
1663
0644
edit
dl
rm
npm-stop.md
1337
0644
edit
dl
rm
npm-team.md
4058
0644
edit
dl
rm
npm-test.md
1230
0644
edit
dl
rm
npm-token.md
4213
0644
edit
dl
rm
npm-uninstall.md
4021
0644
edit
dl
rm
npm-unpublish.md
4370
0644
edit
dl
rm
npm-unstar.md
1568
0644
edit
dl
rm
npm-update.md
11085
0644
edit
dl
rm
npm-version.md
6827
0644
edit
dl
rm
npm-view.md
5269
0644
edit
dl
rm
npm-whoami.md
798
0644
edit
dl
rm
npm.md
5586
0644
edit
dl
rm
npx.md
5730
0644
edit
dl
rm
Edit:
/home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/docs/content/commands/npm-token.md
(4213B)
--- title: npm-token section: 1 description: Manage your authentication tokens --- ### Synopsis ```bash npm token list npm token revoke <id|token> npm token create [--read-only] [--cidr=list] ``` Note: This command is unaware of workspaces. ### Description This lets you list, create and revoke authentication tokens. * `npm token list`: Shows a table of all active authentication tokens. You can request this as JSON with `--json` or tab-separated values with `--parseable`. ```bash +--------+---------+------------+----------+----------------+ | 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 | | +--------+---------+------------+----------+----------------+ ``` * `npm token create [--read-only] [--cidr=<cidr-ranges>]`: Create a new authentication token. It can be `--read-only`, or accept a list of [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) ranges with which to limit use of this token. This will prompt you for your password, and, if you have two-factor authentication enabled, an otp. Currently, the cli can not generate automation tokens. Please refer to the [docs website](https://docs.npmjs.com/creating-and-viewing-access-tokens) for more information on generating automation tokens. ```bash +----------------+--------------------------------------+ | token | a73c9572-f1b9-8983-983d-ba3ac3cc913d | +----------------+--------------------------------------+ | cidr_whitelist | | +----------------+--------------------------------------+ | readonly | false | +----------------+--------------------------------------+ | created | 2017-10-02T07:52:24.838Z | +----------------+--------------------------------------+ ``` * `npm token revoke <token|id>`: Immediately removes an authentication token from the registry. You will no longer be able to use it. This can accept both complete tokens (such as those you get back from `npm token create`, and those found in your `.npmrc`), and ids as seen in the parseable or json output of `npm token list`. This will NOT accept the truncated token found in the normal `npm token list` output. ### Configuration #### `read-only` * Default: false * Type: Boolean This is used to mark a token as unable to publish when configuring limited access tokens with the `npm token create` command. #### `cidr` * Default: null * Type: null or String (can be set multiple times) This is a list of CIDR address to be used when configuring limited access tokens with the `npm token create` command. #### `registry` * Default: "https://registry.npmjs.org/" * Type: URL The base URL of the npm registry. #### `otp` * Default: null * Type: null or String This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`. If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one. ### See Also * [npm adduser](/commands/npm-adduser) * [npm registry](/using-npm/registry) * [npm config](/commands/npm-config) * [npmrc](/configuring-npm/npmrc) * [npm owner](/commands/npm-owner) * [npm whoami](/commands/npm-whoami) * [npm profile](/commands/npm-profile)
Save
cmd:
run