Skip to main content
End the current session by deleting the active profile and clearing its tokens from your system keyring. Other saved profiles are untouched, so this is safe to run on a shared machine when you only want to drop one account.

Synopsis

talkvalue auth logout

Options

None. To target a specific profile, use the global --profile flag.

Examples

1. Sign out of the active profile

talkvalue auth logout
Removes the active profile and clears its tokens. The next command that needs auth will prompt you to run auth login again.

2. Sign out of a specific profile

talkvalue auth logout --profile staging
The global --profile flag selects which saved profile to remove without touching the others.

3. Confirm sign-out in a script

talkvalue auth logout --json | jq '.data.loggedOut'
# true
Branch on data.loggedOut to decide whether to chain a follow-up auth login for a new account.

Response

{
  "data": {
    "loggedOut": true,
    "profile": "you"
  }
}
If there’s no active session to remove, the CLI returns a no-op response instead and exits 0:
{
  "data": {
    "loggedIn": false,
    "message": "No active session to log out from"
  }
}

See also