npm token
Manage and generate authentication tokens for the npm registry. More information: https://docs.npmjs.com/cli/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
- 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
.npmrcfile when you log in:
npm login
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
