diff --git a/pages/common/npm-token.md b/pages/common/npm-token.md new file mode 100644 index 0000000000..ce02574737 --- /dev/null +++ b/pages/common/npm-token.md @@ -0,0 +1,32 @@ +# npm token + +> Manage and generate authentication tokens for the npm registry. +> More information: . + +- Create a new authentication token: + +`npm token create` + +- List all tokens associated with an account: + +`npm token list` + +- Delete a specific token using its token ID: + +`npm token revoke {{token_id}}` + +- Create a token with read-only access: + +`npm token create --read-only` + +- Create a token with publish access: + +`npm token create --publish` + +- Automatically configure an npm token in your global .npmrc file when you log in: + +`npm login` + +- Remove a token from the global configuration: + +`npm token revoke {{token_id}}`