Examples (6)
List all distribution tags for a package
npm dist-tag ls package_nameList all distribution tags for the current package
Add a distribution tag to a specific package version
npm dist-tag add package_name@version tagRemove a distribution tag from a package
npm dist-tag rm package_name tagAdd a tag using the configured tag from npm config
npm dist-tag add package_name@versionAdd a tag with two-factor authentication
npm dist-tag add package_name@version tag --otp one_time_passwordmade by @shridhargupta | data from tldr-pages