cargo

cargo logout

Remove locally saved credentials through the configured provider. This is not server-side revocation; if a token is exposed, revoke it at the registry and investigate exposure. Example format: shell. Illustrative only; do not execute against real accounts or unreviewed sources. Expected result (not executed): Displays help only; no credentials are removed. Common mistake: Believing local logout invalidates every copy of a token.

Formal Syntax & Structure

rust syntaxrust
cargo logout [OPTIONS]

Working Example

Example Snippetrust
cargo logout --help
Rust Reference