From 52d732207c0c1c9802a0486f0dfcfe60eb84d15f Mon Sep 17 00:00:00 2001 From: ashborn <121210083+Bucke200@users.noreply.github.com> Date: Thu, 17 Oct 2024 19:10:18 +0530 Subject: [PATCH] npm-token: add page (#14250) Co-authored-by: Wiktor Perskawiec --- pages/common/npm-token.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/npm-token.md 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}}`