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:
parent
02e9559762
commit
52d732207c
1 changed files with 32 additions and 0 deletions
32
pages/common/npm-token.md
Normal file
32
pages/common/npm-token.md
Normal 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}}`
|
Loading…
Add table
Reference in a new issue