npm dist-tag
Manage distribution tags on packages. More information: https://docs.npmjs.com/cli/npm-dist-tag/.
- List all distribution tags for a package:
npm dist-tag ls
- List all distribution tags for the current package:
npm dist-tag ls
- Add a distribution tag to a specific package version:
npm dist-tag add @
- Remove a distribution tag from a package:
npm dist-tag rm
- Add a tag using the configured tag from npm config:
npm dist-tag add @
- Add a tag with two-factor authentication:
npm dist-tag add @ --otp
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
