Commands
Commands
The Sentry CLI provides commands for interacting with various Sentry resources.
Available Commands
| Command | Description |
|---|---|
auth | Authenticate with Sentry |
cli | CLI-related commands |
dashboard | Manage Sentry dashboards |
org | Work with Sentry organizations |
project | Work with Sentry projects |
repo | Work with Sentry repositories |
team | Work with Sentry teams |
issue | Manage Sentry issues |
event | View Sentry events |
log | View Sentry logs |
sourcemap | Manage sourcemaps |
span | List and view spans in projects or traces |
trace | View distributed traces |
trial | Manage product trials |
init | Initialize Sentry in your project (experimental) |
api | Make an authenticated API request |
schema | Browse the Sentry API schema |
Global Options
All commands support the following global options:
--help- Show help for the command--version- Show CLI version--log-level <level>- Set log verbosity (error,warn,log,info,debug,trace). OverridesSENTRY_LOG_LEVEL--verbose- Shorthand for--log-level debug
JSON Output
Most list and view commands support --json flag for JSON output, making it easy to integrate with other tools:
sentry org list --json | jq '.[] | .slug'Opening in Browser
View commands support -w or --web flag to open the resource in your browser:
sentry issue view PROJ-123 -w