1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 08:55:24 +02:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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}}`