ktm logout

Use the ktm logout command to clear stored OAuth tokens from your keychain and revoke them server-side when possible.

Clear the stored OAuth token (and revoke it server-side)

Usage

ktm logout [flags]

Examples

# Clear the stored token and revoke it server-side
ktm logout

# Clear only the local store (skip the revoke call)
ktm logout --keep-remote

Flags

FlagTypeDefaultDescription
--creds-filestringPath to the fallback credentials file
--keep-remotebooleanSkip server-side revocation (only clear the local store)
--no-keychainbooleanOperate on the file fallback instead of the OS keychain

Details

Remove the access + refresh tokens from your OS keychain (or the fallback credentials file), and best-effort revoke them at the Authorization Server.

Server-side revocation needs the token's issuer to be reachable. If the network is down, the local tokens are still cleared (use --keep-remote to skip the revoke call entirely — the tokens will simply expire on their own schedule).

Global flags (--output, --debug, --host, …) apply to every command. See the command reference overview.

What's next?

All commands

Browse the full CLI reference.

Get started

Install the CLI and authenticate.

Last updated on