1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 16:42:08 +02:00
tldr/pages/common/cargo-logout.md
Lena 02c7e38f8b
cargo-*: add page; cargo-logout: update page (#11337)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2023-10-31 08:29:03 +01:00

528 B

cargo logout

Remove an API token from the registry locally. The token is used to authenticate to a package registry. You can add it back using cargo login. More information: https://doc.rust-lang.org/cargo/commands/cargo-logout.html.

  • Remove an API token from the local credential storage (located in $CARGO_HOME/credentials.toml):

cargo logout

  • Specify the name of the registry to use (registry names can be defined in the config - the default is https://crates.io):

cargo logout --registry {{name}}