Skip to content

Commit 4304a28

Browse files
committed
Settings::ApiTokens: Adjust "API tokens" explainer
1 parent 8281988 commit 4304a28

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

app/components/settings/api-tokens.hbs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@
1414
</div>
1515

1616
<p>
17-
If you want to use package commands from the command line, you will need to
18-
login with <code>cargo login (token)</code> using one of the tokens listed below.
17+
You can use the API tokens on this page to run <a href="https://doc.rust-lang.org/cargo/">cargo</a>
18+
commands that need write access to crates.io. If you want to publish your own
19+
crates then this is required.
1920
</p>
21+
2022
<p>
21-
When working in shared environments, supplying the token on the command line could
22-
expose it to prying eyes. To avoid this, enter <code>cargo login</code> and supply your
23-
token when prompted.
23+
Run <a href="https://doc.rust-lang.org/cargo/commands/cargo-login.html"><code>cargo login</code></a>
24+
on the command line to save the API token that you will use for local
25+
development. For CI systems you can use the
26+
<a href="https://doc.rust-lang.org/cargo/reference/config.html?highlight=CARGO_REGISTRY_TOKEN#credentials"><code>CARGO_REGISTRY_TOKEN</code></a>
27+
environment variable, but make sure that the token stays secret!
2428
</p>
2529

2630
{{#if this.newToken}}

0 commit comments

Comments
 (0)