Flags
Remove every organization stored on this machine. Can’t be combined with
--org.Examples
Output
--json:
Nothing to remove; no local credentials were stored.
Behavior
- Logging out doesn’t revoke the key. It only removes the key from this machine. To make a key unusable everywhere, revoke it on the API Keys page.
- Keys are removed before the context file is updated. If something fails part-way, the organization stays listed but has no key, and running
logoutagain clears it. - A locked keychain never looks like a logout. If the keychain can’t be reached, nothing is removed and the command fails with
CREDENTIAL_STORE_UNAVAILABLE. - No new selection. After logging out of the selected organization, no organization is selected until you run
sabaoth org useorsabaoth login.
When SABAOTH_API_KEY is set
A plainsabaoth logout fails with ENV_CREDENTIAL_ACTIVE (exit 2). There’s no local session to end, and the environment variable is what commands are actually using. Unset it to stop using it:
--org and --all still clean up local state, with a warning that the environment variable is still active.