1.8 KiB
1.8 KiB
name, version, description, requires
| name | version | description | requires | |||||
|---|---|---|---|---|---|---|---|---|
| sentry-cli-auth | 0.33.0 | Authenticate with Sentry |
|
Auth Commands
Authenticate with Sentry
sentry auth login
Authenticate with Sentry
Flags:
--token <value> - Authenticate using an API token instead of OAuth--timeout <value> - Timeout for OAuth flow in seconds (default: 900) - (default: "900")--force - Re-authenticate without prompting--url <value> - Sentry instance URL to authenticate against (e.g. https://sentry.example.com). Required for self-hosted; defaults to SaaS (https://sentry.io).
Examples:
sentry auth login
sentry auth login --token YOUR_SENTRY_API_TOKEN
SENTRY_URL=https://sentry.example.com sentry auth login
SENTRY_URL=https://sentry.example.com sentry auth login --token YOUR_TOKEN
sentry auth logout
Log out of Sentry
Examples:
sentry auth logout
sentry auth refresh
Refresh your authentication token
Flags:
--force - Force refresh even if token is still valid
Examples:
sentry auth refresh
sentry auth status
View authentication status
Flags:
--show-token - Show the stored token (masked by default)-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
sentry auth status
# Show the raw token
sentry auth status --show-token
# View current user
sentry auth whoami
sentry auth token
Print the stored authentication token
Examples:
sentry auth token
sentry auth whoami
Show the currently authenticated identity
Flags:
-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
All commands also support --json, --fields, --help, --log-level, and --verbose flags.