Files
tldr/pages.zh/common/cargo-logout.md

13 lines
508 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# cargo logout
> 从本地注册表中移除一个 API 令牌。
> 该令牌用于对包注册表进行身份验证。您可以使用 `cargo login` 将其重新添加。
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-logout.html>。
- 从本地凭据存储中移除一个 API 令牌(位于 `$CARGO_HOME/credentials.toml`
`cargo logout`
- 使用指定的注册表(注册表名称可以在配置中定义 - 默认是 <https://crates.io>
`cargo logout --registry {{name}}`