Skip to content

Commit 8ed5016

Browse files
committed
chore: add deprecation note to token creation
1 parent fe9484a commit 8ed5016

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

docs/lib/content/commands/npm-token.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,16 @@ Publish token npm_… with id e0cf92 created 2017-10-02
2626
2727
```
2828

29-
* `npm token create [--read-only] [--cidr=<cidr-ranges>]`:
29+
* `npm token create [--read-only] [--cidr=<cidr-ranges>]` (deprecated):
3030
Create a new authentication token. It can be `--read-only`, or accept
3131
a list of
3232
[CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3333
ranges with which to limit use of this token. This will prompt you for
3434
your password, and, if you have two-factor authentication enabled, an
3535
otp.
3636

37-
Currently, the cli can not generate automation tokens. Please refer to
38-
the [docs
39-
website](https://docs.npmjs.com/creating-and-viewing-access-tokens)
40-
for more information on generating automation tokens.
37+
Creating tokens via the CLI is deprecated and will be removed from the npm registry in the future.
38+
For more info please visit https://docs.npmjs.com/creating-and-viewing-access-tokens
4139

4240
```
4341
Created publish token a73c9572-f1b9-8983-983d-ba3ac3cc913d

0 commit comments

Comments
 (0)