Skip to content
DocsGitHub

Commands

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

Command Description
alert Manage Sentry alert rules
auth Authenticate with Sentry
build Manage mobile build artifacts
cli CLI-related commands
code-mappings Manage code mappings for stack trace linking
dart-symbol-map Work with Dart/Flutter symbol maps
debug-files Work with debug information files
dashboard Manage Sentry dashboards
org Work with Sentry organizations
project Work with Sentry projects
proguard Work with ProGuard/R8 mapping files
react-native Upload React Native sourcemaps from build steps
replay Search and inspect Session Replays
release Work with Sentry releases
repo Work with Sentry repositories
team Work with Sentry teams
issue Manage Sentry issues
event View, list, and send Sentry events
explore Query aggregate event data (Explore)
feedback Search and inspect User Feedback
log View Sentry logs
monitor Work with Sentry cron monitors
snapshots Manage and compare snapshots
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)
info Print configuration and verify authentication
local Sentry for local development
api Make an authenticated API request
schema Browse the Sentry API schema

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

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'

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

Terminal window
sentry issue view PROJ-123 -w