cargo-logout --- Remove an API token from the registry locally
cargo logout
[options]
This command will remove the API token from the local credential storage.
Credentials are stored in $CARGO_HOME/credentials.toml
where $CARGO_HOME
defaults to .cargo
in your home directory.
If --registry
is not specified, then the credentials for https://crates.io/
will be removed.
This will not revoke the token on the server. If you need to revoke the token, visit the registry website and follow its instructions (see https://crates.io/me to revoke the token for https://crates.io/).
{{#options}} {{> options-registry }} {{/options}}
{{#options}} {{> options-display }} {{/options}}
{{> section-options-common }}
{{> section-environment }}
{{> section-exit-status }}
-
Remove the default registry token:
cargo logout
-
Remove the token for a specific registry:
cargo logout --registry my-registry
{{man "cargo" 1}}, {{man "cargo-login" 1}}