Commands
dashboard
View and manage dashboards in your Sentry organization.
Commands
sentry dashboard list
List dashboards in an organization.
# Auto-detect org from configsentry dashboard list
# Explicit orgsentry dashboard list my-org/
# Explicit org and projectsentry dashboard list my-org/my-projectArguments:
| Argument | Description |
|---|---|
<org>/ | Organization slug (optional — auto-detected from config if omitted) |
<org>/<project> | Organization and project to scope the dashboard list |
Options:
| Option | Description |
|---|---|
-w, --web | Open in browser |
-n, --limit <n> | Maximum number of dashboards to list (default: 30) |
-f, --fresh | Bypass cache and fetch fresh data |
--json | Output as JSON |
Examples:
sentry dashboard listID TITLE WIDGETS CREATED12345 General 4 2024-01-1512346 Frontend Performance 6 2024-02-2012347 Backend Errors 3 2024-03-10Open dashboard list in browser:
sentry dashboard list -wsentry dashboard view
View details of a specific dashboard, including its widgets.
# By numeric IDsentry dashboard view <id>
# By titlesentry dashboard view '<title>'
# With explicit orgsentry dashboard view <org>/ <id>Arguments:
| Argument | Description |
|---|---|
<id> or <title> | Dashboard ID (numeric) or title (case-insensitive) |
<org>/ | Organization slug (optional) |
Options:
| Option | Description |
|---|---|
-w, --web | Open in browser |
-f, --fresh | Bypass cache and fetch fresh data |
--json | Output as JSON |
Examples:
sentry dashboard view 12345Dashboard: Frontend Performance (ID: 12345)URL: https://my-org.sentry.io/dashboard/12345/
Widgets: #0 Error Count big_number count() #1 Errors Over Time line count() #2 Errors by Browser bar count() group by browser.name #3 Top Endpoints table count(), p95(span.duration) group by transactionView by title:
sentry dashboard view 'Frontend Performance'Open in browser:
sentry dashboard view 12345 -wsentry dashboard create
Create a new dashboard.
# Auto-detect orgsentry dashboard create '<title>'
# Explicit orgsentry dashboard create <org>/ '<title>'
# Explicit org and projectsentry dashboard create <org>/<project> '<title>'Arguments:
| Argument | Description |
|---|---|
<title> | Dashboard title |
<org>/ or <org>/<project> | Organization and optional project (auto-detected if omitted) |
Examples:
sentry dashboard create 'Frontend Performance'Created dashboard: Frontend Performance (ID: 12348)URL: https://my-org.sentry.io/dashboard/12348/Add widgets after creation:
sentry dashboard widget add 'Frontend Performance' "Error Count" --display big_number --query countsentry dashboard widget add
Add a widget to an existing dashboard.
sentry dashboard widget add <dashboard> '<widget-title>' --display <type> [options]Arguments:
| Argument | Description |
|---|---|
<dashboard> | Dashboard ID (numeric) or title |
<widget-title> | Title for the new widget |
<org>/ | Organization slug (optional, prepend before dashboard) |
Options:
| Option | Description |
|---|---|
-d, --display <type> | Display type: line, bar, table, big_number, area, top_n (required) |
--dataset <dataset> | Widget dataset (default: spans). Also accepts discover |
-q, --query <expr> | Aggregate expression (repeatable for multiple columns) |
-w, --where <filter> | Search conditions filter |
-g, --group-by <col> | Group-by column (repeatable) |
-s, --sort <expr> | Sort order (prefix - for descending) |
-n, --limit <n> | Result row limit |
--json | Output as JSON |
Query shorthand:
The --query flag supports shorthand for aggregate functions:
| Input | Expands to |
|---|---|
count | count() |
p95:span.duration | p95(span.duration) |
avg:span.duration | avg(span.duration) |
count() | count() (passthrough) |
Sort shorthand:
| Input | Meaning |
|---|---|
count | Sort by count() ascending |
-count | Sort by count() descending |
Examples:
# Simple counter widgetsentry dashboard widget add 'My Dashboard' "Error Count" \ --display big_number --query count# Line chart with group-bysentry dashboard widget add 'My Dashboard' "Errors by Browser" \ --display line --query count --group-by browser.name# Table with multiple aggregates, sorted descendingsentry dashboard widget add 'My Dashboard' "Top Endpoints" \ --display table \ --query count --query p95:span.duration \ --group-by transaction \ --sort -count --limit 10# With search filtersentry dashboard widget add 'My Dashboard' "Slow Requests" \ --display bar --query p95:span.duration \ --where "span.op:http.client" \ --group-by span.descriptionsentry dashboard widget edit
Edit an existing widget in a dashboard. Only provided flags are changed — omitted values are preserved.
# Identify widget by titlesentry dashboard widget edit <dashboard> --title '<widget-title>' [options]
# Identify widget by index (0-based)sentry dashboard widget edit <dashboard> --index <n> [options]Arguments:
| Argument | Description |
|---|---|
<dashboard> | Dashboard ID (numeric) or title |
<org>/ | Organization slug (optional, prepend before dashboard) |
Options:
| Option | Description |
|---|---|
-i, --index <n> | Widget index (0-based) |
-t, --title <title> | Match widget by title (case-insensitive) |
--new-title <title> | Rename the widget |
-d, --display <type> | Change display type |
--dataset <dataset> | Change widget dataset |
-q, --query <expr> | Replace aggregate expression(s) |
-w, --where <filter> | Replace search conditions |
-g, --group-by <col> | Replace group-by column(s) |
-s, --sort <expr> | Replace sort order |
-n, --limit <n> | Change result limit |
--json | Output as JSON |
Examples:
# Change display typesentry dashboard widget edit 12345 --title 'Error Count' --display bar# Rename a widgetsentry dashboard widget edit 'My Dashboard' --index 0 --new-title 'Total Errors'# Change the querysentry dashboard widget edit 12345 --title 'Error Rate' --query p95:span.durationsentry dashboard widget delete
Remove a widget from a dashboard.
# Delete by titlesentry dashboard widget delete <dashboard> --title '<widget-title>'
# Delete by index (0-based)sentry dashboard widget delete <dashboard> --index <n>Arguments:
| Argument | Description |
|---|---|
<dashboard> | Dashboard ID (numeric) or title |
<org>/ | Organization slug (optional, prepend before dashboard) |
Options:
| Option | Description |
|---|---|
-i, --index <n> | Widget index (0-based) |
-t, --title <title> | Match widget by title (case-insensitive) |
--json | Output as JSON |
Examples:
# Delete by titlesentry dashboard widget delete 'My Dashboard' --title 'Error Count'# Delete by indexsentry dashboard widget delete 12345 --index 2