Linux command
npm-token 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List tokens
npm token list
Create token
npm token create
Create read-only token
npm token create --read-only
Create CI token
npm token create --cidr=[192.168.1.0/24]
Revoke token
npm token revoke [token-id]
说明
npm token manages authentication tokens. Creates tokens for CI/CD. The command handles API tokens. Supports scoped permissions.
参数
- list
- Show all tokens.
- create
- Generate new token.
- revoke _ID_
- Invalidate token.
- --read-only
- Read-only token.
- --cidr _RANGE_
- IP restriction.
- --help
- Display help information.
FAQ
What is the npm-token command used for?
npm token manages authentication tokens. Creates tokens for CI/CD. The command handles API tokens. Supports scoped permissions.
How do I run a basic npm-token example?
Run `npm token list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list do in npm-token?
Show all tokens.