Skip to content

Commit 8a6ecc7

Browse files
scotttrinhzkat
authored andcommitted
docs: Update OTP documentation for dist-tag add (#74)
See discussion here: https://npm.community/t/npm-dist-tag-add-with-2fa-enabled-fails-for-non-latest-tag-with-500/2432 TL;DR: > To be clear, you can specify an existing tag and it’ll change it. If you have 2FA enabled, you do need to specify `--otp` and if you don’t, you should get a `401` as above. Ref: https://npm.community/t/npm-dist-tag-add-with-2fa-enabled-fails-for-non-latest-tag-with-500/2432 PR-URL: #74 Credit: @scotttrinh Reviewed-By: @iarna Reviewed-By: @zkat
1 parent 15da826 commit 8a6ecc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/cli/npm-dist-tag.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Add, remove, and enumerate distribution tags on a package:
1515

1616
* add:
1717
Tags the specified version of the package with the specified tag, or the
18-
`--tag` config if not specified. If the tag you're adding is `latest` and you
19-
have two-factor authentication on auth-and-writes then you'll need to include
20-
an otp on the command line with `--otp`.
18+
`--tag` config if not specified. If you have two-factor authentication on
19+
auth-and-writes then youll need to include a one-time password on the
20+
command line with `--otp <one-time password>`.
2121

2222
* rm:
2323
Clear a tag that is no longer in use from the package.

0 commit comments

Comments
 (0)