npm-token: add page (#14250)

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
ashborn
2024-10-17 19:10:18 +05:30
committed by GitHub
parent 02e9559762
commit 52d732207c

32
pages/common/npm-token.md Normal file
View File

@@ -0,0 +1,32 @@
# npm token
> Manage and generate authentication tokens for the npm registry.
> More information: <https://docs.npmjs.com/cli/commands/npm-token>.
- 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}}`