Commands
Commands
The Sentry CLI provides commands for interacting with various Sentry resources.
Available Commands
Section titled “Available Commands”| 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 |
Global Options
Section titled “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
Section titled “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
Section titled “Opening in Browser”View commands support -w or --web flag to open the resource in your browser:
sentry issue view PROJ-123 -w