snippetbashTip
npm token — Manage and generate authentication tokens for the npm registry. More information: <https://docs.npmj
Viewed 0 times
commandtokensandclimanageauthenticationgeneratenpm token
Problem
How to use the
npm token command: Manage and generate authentication tokens for the npm registry. More information: <https://docs.npmjs.com/cli/npm-token/>.Solution
npm token — Manage and generate authentication tokens for the npm registry. More information: <https://docs.npmjs.com/cli/npm-token/>.Create a new authentication token:
npm token createList all tokens associated with an account:
npm token listDelete a specific token using its token ID:
npm token revoke {{token_id}}Create a token with read-only access:
npm token create --read-onlyCreate a token with publish access:
npm token create --publishAutomatically configure an npm token in your global
.npmrc file when you log in:npm loginRemove a token from the global configuration:
npm token revoke {{token_id}}Code Snippets
Create a new authentication token
npm token createList all tokens associated with an account
npm token listDelete a specific token using its token ID
npm token revoke {{token_id}}Create a token with read-only access
npm token create --read-onlyCreate a token with publish access
npm token create --publishContext
tldr-pages: common/npm token
Revisions (0)
No revisions yet.