File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
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}} `
You can’t perform that action at this time.
0 commit comments