2023-10-08 15:02:58 +05:30
|
|
|
# cargo logout
|
|
|
|
|
|
|
|
> Remove an API token from the registry locally.
|
2023-10-31 08:29:03 +01:00
|
|
|
> The token is used to authenticate to a package registry. You can add it back using `cargo login`.
|
2023-10-08 15:02:58 +05:30
|
|
|
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-logout.html>.
|
|
|
|
|
2023-10-31 08:29:03 +01:00
|
|
|
- Remove an API token from the local credential storage (located in `$CARGO_HOME/credentials.toml`):
|
2023-10-08 15:02:58 +05:30
|
|
|
|
|
|
|
`cargo logout`
|
|
|
|
|
2024-01-25 02:29:16 -03:00
|
|
|
- Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>):
|
2023-10-08 15:02:58 +05:30
|
|
|
|
2023-10-29 09:54:53 +01:00
|
|
|
`cargo logout --registry {{name}}`
|