Skip to content

Commit 19229a4

Browse files
committed
Don't recommend leaking tokens into the console history
1 parent 9cffcfc commit 19229a4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/doc/src/reference/publishing.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ limit to the number of versions which can be published, however.
1313
First things first, you’ll need an account on [crates.io] to acquire
1414
an API token. To do so, [visit the home page][crates.io] and log in via a GitHub
1515
account (required for now). After this, visit your [Account
16-
Settings](https://crates.io/me) page and run the [`cargo login`] command
17-
specified.
16+
Settings](https://crates.io/me) page and run the [`cargo login`] command.
1817

1918
```console
20-
$ cargo login abcdefghijklmnopqrstuvwxyz012345
19+
$ cargo login
20+
```
21+
22+
Then at the propt put in the token specified.
23+
```console
24+
please paste the API Token found on https://crates.io/me below
25+
abcdefghijklmnopqrstuvwxyz012345
2126
```
2227

2328
This command will inform Cargo of your API token and store it locally in your

0 commit comments

Comments
 (0)