Skip to content
Docs GitHub

Commands

The Sentry CLI provides commands for interacting with various Sentry resources.

Available Commands

CommandDescription
authAuthenticate with Sentry
cliCLI-related commands
dashboardManage Sentry dashboards
orgWork with Sentry organizations
projectWork with Sentry projects
repoWork with Sentry repositories
teamWork with Sentry teams
issueManage Sentry issues
eventView Sentry events
logView Sentry logs
sourcemapManage sourcemaps
spanList and view spans in projects or traces
traceView distributed traces
trialManage product trials
initInitialize Sentry in your project (experimental)
apiMake an authenticated API request
schemaBrowse 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). Overrides SENTRY_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:

Terminal window
sentry org list --json | jq '.[] | .slug'

Opening in Browser

View commands support -w or --web flag to open the resource in your browser:

Terminal window
sentry issue view PROJ-123 -w