Skip to main content
Remove stored authentication credentials from the configuration file.

Usage

sentry auth logout

Description

Log out of Sentry by clearing stored authentication credentials from your local configuration file. This command removes OAuth tokens and related session data.
If authentication is provided via environment variable (SENTRY_AUTH_TOKEN or SENTRY_TOKEN), you’ll need to unset the environment variable to log out. The command will inform you which variable to unset.

Options

This command has no flags.

Examples

Log out

sentry auth logout
Expected output:
✓ Logged out successfully.
  Credentials removed from: ~/.sentry/config.db

Logout when not authenticated

sentry auth logout
Expected output:
Not currently authenticated.

Logout with environment variable active

SENTRY_AUTH_TOKEN=sntrys_xxx sentry auth logout
Expected output:
Authentication is provided via SENTRY_AUTH_TOKEN environment variable.
Unset SENTRY_AUTH_TOKEN to log out.
After logging out, you can log in again with a different account or authentication method using sentry auth login.

Build docs developers (and LLMs) love