Skip to content

Commit ba44554

Browse files
ved1betaTheRootDaemonManagor
authored
npm-dist-tag: add page (#18441)
Co-authored-by: Harshavardhan <[email protected]> Co-authored-by: Managor <[email protected]>
1 parent 72f4c8c commit ba44554

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pages/common/npm-dist-tag.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# npm dist-tag
2+
3+
> Manage distribution tags on packages.
4+
> More information: <https://docs.npmjs.com/cli/commands/npm-dist-tag>.
5+
6+
- List all distribution tags for a package:
7+
8+
`npm dist-tag ls {{package_name}}`
9+
10+
- List all distribution tags for the current package:
11+
12+
`npm dist-tag ls`
13+
14+
- Add a distribution tag to a specific package version:
15+
16+
`npm dist-tag add {{package_name}}@{{version}} {{tag}}`
17+
18+
- Remove a distribution tag from a package:
19+
20+
`npm dist-tag rm {{package_name}} {{tag}}`
21+
22+
- Add a tag using the configured tag from npm config:
23+
24+
`npm dist-tag add {{package_name}}@{{version}}`
25+
26+
- Add a tag with two-factor authentication:
27+
28+
`npm dist-tag add {{package_name}}@{{version}} {{tag}} --otp {{one_time_password}}`

0 commit comments

Comments
 (0)