issue
Manage Sentry issues
Commands
Section titled “Commands”sentry issue list <org/project>
Section titled “sentry issue list <org/project>”List issues in a project
Arguments:
| Argument | Description |
|---|---|
<org/project> |
<org>/ (all projects), <org>/<project>, or <project> (search) |
Options:
| Option | Description |
|---|---|
-q, --query <query> |
Search query (Sentry syntax, implicit AND, no OR operator) |
-n, --limit <limit> |
Maximum number of issues to list (default: "25") |
-s, --sort <sort> |
Sort by: recommended, date, new, freq, user (default: recommended on sentry.io, else date) |
-t, --period <period> |
Time range: "7d", "2026-07-01..2026-08-01", ">=2026-07-01" (default: "90d") |
-c, --cursor <cursor> |
Pagination cursor (use "next" for next page, "prev" for previous) |
--compact |
Single-line rows for compact output (auto-detects if omitted) |
-f, --fresh |
Bypass cache, re-detect projects, and fetch fresh data |
sentry issue events <issue>
Section titled “sentry issue events <issue>”List events for a specific issue
Arguments:
| Argument | Description |
|---|---|
<issue> |
Issue: @latest, @most_frequent, <org>/ID, <org>/<project>#ID, <project>-suffix, ID, or suffix |
Options:
| Option | Description |
|---|---|
-n, --limit <limit> |
Number of events (1-1000) (default: "25") |
-q, --query <query> |
Search query (Sentry search syntax) |
--full |
Include full event body (stacktraces) |
-t, --period <period> |
Time range: "7d", "2026-07-01..2026-08-01", ">=2026-07-01" (default: "7d") |
-f, --fresh |
Bypass cache, re-detect projects, and fetch fresh data |
-c, --cursor <cursor> |
Navigate pages: "next", "prev", "first" (or raw cursor string) |
sentry issue explain <issue>
Section titled “sentry issue explain <issue>”Analyze an issue's root cause using Seer AI
Arguments:
| Argument | Description |
|---|---|
<issue> |
Issue: @latest, @most_frequent, <org>/ID, <org>/<project>#ID, <project>-suffix, ID, or suffix |
Options:
| Option | Description |
|---|---|
--force |
Force new analysis even if one exists |
-f, --fresh |
Bypass cache, re-detect projects, and fetch fresh data |
sentry issue plan <issue>
Section titled “sentry issue plan <issue>”Generate a solution plan using Seer AI
Arguments:
| Argument | Description |
|---|---|
<issue> |
Issue: @latest, @most_frequent, <org>/ID, <org>/<project>#ID, <project>-suffix, ID, or suffix |
Options:
| Option | Description |
|---|---|
--force |
Force new plan even if one exists |
-f, --fresh |
Bypass cache, re-detect projects, and fetch fresh data |
sentry issue view <issue>
Section titled “sentry issue view <issue>”View details of a specific issue
Arguments:
| Argument | Description |
|---|---|
<issue> |
Issue: @latest, @most_frequent, <org>/ID, <org>/<project>#ID, <project>-suffix, ID, or suffix |
Options:
| Option | Description |
|---|---|
-w, --web |
Open in browser |
--spans <spans> |
Span tree depth limit (number, "all" for unlimited, "no" to disable) (default: "3") |
-f, --fresh |
Bypass cache, re-detect projects, and fetch fresh data |
sentry issue resolve <issue>
Section titled “sentry issue resolve <issue>”Mark an issue as resolved
Arguments:
| Argument | Description |
|---|---|
<issue> |
Issue: @latest, @most_frequent, <org>/ID, <org>/<project>#ID, <project>-suffix, ID, or suffix |
Options:
| Option | Description |
|---|---|
-i, --in <in> |
Resolve in a release, next release, or commit (' |
sentry issue unresolve <issue>
Section titled “sentry issue unresolve <issue>”Reopen a resolved issue
Arguments:
| Argument | Description |
|---|---|
<issue> |
Issue: @latest, @most_frequent, <org>/ID, <org>/<project>#ID, <project>-suffix, ID, or suffix |
sentry issue archive <issue>
Section titled “sentry issue archive <issue>”Archive (ignore) an issue
Arguments:
| Argument | Description |
|---|---|
<issue> |
Issue: @latest, @most_frequent, <org>/ID, <org>/<project>#ID, <project>-suffix, ID, or suffix |
Options:
| Option | Description |
|---|---|
-u, --until <until> |
Condition for unarchival: forever, auto, 30m, 10x, 10u, 10x/5m, etc. |
sentry issue merge <issue...>
Section titled “sentry issue merge <issue...>”Merge 2+ issues into a single canonical group
Arguments:
| Argument | Description |
|---|---|
<issue...> |
Issue IDs to merge (2 or more required) |
Options:
| Option | Description |
|---|---|
-i, --into <into> |
Prefer this issue as the canonical parent (included in the merge if not already listed) |
All commands support --json for machine-readable output and --fields to select specific JSON fields.
Examples
Section titled “Examples”List issues
Section titled “List issues”# List issues in a specific projectsentry issue list my-org/frontend
# All projects in an orgsentry issue list my-org/
# Search for a project across organizationssentry issue list frontendID SHORT ID TITLE COUNT USERS123456789 FRONT-ABC TypeError: Cannot read prop... 1.2k 234987654321 FRONT-DEF ReferenceError: x is not de... 456 89Filter by status and search:
# Show only unresolved issuessentry issue list my-org/frontend --query "is:unresolved"
# Show resolved issuessentry issue list my-org/frontend --query "is:resolved"
# Sort by frequencysentry issue list my-org/frontend --sort freq --limit 20
# Sort by Sentry's "recommended" relevance ranking (the default on sentry.io;# self-hosted instances default to "date" and require a recent Sentry version# to accept --sort recommended)sentry issue list my-org/frontend --sort recommended
# Multiple filters (space-separated = implicit AND)sentry issue list --query "is:unresolved level:error assigned:me"
# Negation and wildcardssentry issue list --query "!browser:Chrome message:*timeout*"
# Match multiple values for one key (in-list syntax)sentry issue list --query "browser:[Chrome,Firefox]"Magic selectors
Section titled “Magic selectors”Use @latest and @most_frequent to target issues without knowing their ID:
# View the most recent issuesentry issue view @latest
# Explain the most frequently occurring issuesentry issue explain @most_frequent
# Generate a fix plan for the latest issuesentry issue plan @latestCommon mistakes
Section titled “Common mistakes”- Don't use the issue command name as an issue prefix —
sentry issue explain issue-1is parsed as projectissue+ suffix1. Use a real project prefix:sentry issue explain FRONT-1or a numeric ID:sentry issue explain 123456789. - Issue short IDs use uppercase prefixes —
CLI-G, notcli-g. The CLI tolerates lowercase input in most commands, but agents should prefer the canonical form. org/projecttargets use slugs, not numeric IDs —sentry issue list my-org/6775615880fails when6775615880is a project ID copied from a URL. Runsentry project list my-org/to find the slug (e.g.frontend).- Prefer auto-detect over guessing slugs — omit the target when possible; the CLI resolves org/project from DSNs,
.envfiles, and your working directory.
List events for an issue
Section titled “List events for an issue”# List recent events for an issuesentry issue events FRONT-ABC
# Filter events by search querysentry issue events FRONT-ABC --query "browser:Chrome"
# Show full event detailssentry issue events FRONT-ABC --full
# Limit results and filter by time periodsentry issue events FRONT-ABC --limit 50 --period 24h
# Paginate through resultssentry issue events FRONT-ABC -c nextView an issue
Section titled “View an issue”sentry issue view FRONT-ABCIssue: TypeError: Cannot read property 'foo' of undefinedShort ID: FRONT-ABCStatus: unresolvedFirst seen: 2024-01-15 10:30:00Last seen: 2024-01-20 14:22:00Events: 1,234Users affected: 234
Latest event: Browser: Chrome 120 OS: Windows 10 URL: https://example.com/app# Open in browsersentry issue view FRONT-ABC -w# GitHub-style identifiers work too (the "#" replaces the final slash)sentry issue view my-org/my-project#FRONT-ABCsentry issue view my-project#FRONT-ABCJSON output for agents and scripting:
--json returns the issue fields at the top level plus the latest event under
event, the resolved org slug, related replayIds, and trace context.
Prefer this over the human output when parsing programmatically.
# Full JSON (issue fields + latest event + trace/replay context)sentry issue view FRONT-ABC --json
# Select specific top-level fields to keep output smallsentry issue view FRONT-ABC --json --fields shortId,title,culprit,count,userCount,permalink
# Pull named fields off the latest event instead of the whole `event` object —# the event's `request` entry can include live session data (cookies, headers,# body), so extract only what you needsentry issue view FRONT-ABC --json --fields event.id,event.title,event.dateCreatedCommon jq shapes for the --json output. The latest event's data lives under
event.entries[], each tagged with a type ("exception", "request",
"breadcrumbs", …) and a data payload — not as top-level event.request /
event.exception keys:
# Issue summarysentry issue view FRONT-ABC --json | jq '{shortId, title, count, userCount, permalink}'
# Latest event id + culpritsentry issue view FRONT-ABC --json | jq '{event: .event.id, culprit}'
# Just the request URL and method (avoids the full request/session blob)sentry issue view FRONT-ABC --json | jq '.event.entries[] | select(.type == "request") | .data | {url, method}'
# Exception type and value from the latest eventsentry issue view FRONT-ABC --json | jq '.event.entries[] | select(.type == "exception") | .data.values[0] | {type, value}'Explain and plan with Seer AI
Section titled “Explain and plan with Seer AI”# Analyze root cause (may take a few minutes for new issues)sentry issue explain 123456789
# By short ID with org prefixsentry issue explain my-org/MYPROJECT-ABC
# Force a fresh analysissentry issue explain 123456789 --force
# Generate a fix plan (automatically runs explain if needed)sentry issue plan 123456789
# Force a fresh plan even if one already existssentry issue plan 123456789 --forceRequirements:
- Seer AI enabled for your organization
- GitHub integration configured with repository access
- Code mappings set up to link stack frames to source files
- Root cause analysis is run automatically if needed (the
plancommand triggersexplainfirst)
Resolve and reopen issues
Section titled “Resolve and reopen issues”# Resolve immediately (no regression tracking)sentry issue resolve CLI-G5
# Resolve in a specific release — future events on newer releases are# regression-flaggedsentry issue resolve CLI-G5 --in 0.26.1
# Monorepo-style releases work too (no special parsing)sentry issue resolve CLI-G5 --in spotlight@1.2.3
# Resolve in the next release (tied to current HEAD)sentry issue resolve CLI-G5 --in @nextsentry issue resolve CLI-G5 -i @next
# Resolve in the current git HEAD — auto-detects the Sentry repo from# your git origin remote (hard-errors if it can't)sentry issue resolve CLI-G5 --in @commit
# Explicit commit + repo (no git inspection; repo must be registered in Sentry)sentry issue resolve CLI-G5 --in @commit:getsentry/cli@abc123def
# Reopen a resolved issuesentry issue unresolve CLI-G5sentry issue reopen CLI-G5 # aliasMerge fragmented issues
Section titled “Merge fragmented issues”Consolidate multiple issues (e.g. same logical error split by Sentry's default stack-trace grouping) into a single canonical group:
# Let Sentry auto-pick the parent (typically the largest by event count)sentry issue merge CLI-K9 CLI-15H CLI-15N
# Pin the canonical parent explicitly — accepts the same formats as# positional args, including org-qualified and project-alias formssentry issue merge CLI-K9 CLI-15H CLI-15N --into CLI-K9sentry issue merge my-org/CLI-K9 my-org/CLI-15H --into my-org/CLI-K9sentry issue merge cli-k9 cli-15h --into cli-k9 # alias form
# Cross-org merges are rejected — all issues must share an organization# Non-error issue types (performance, info, etc.) cannot be mergedArchive and ignore issues
Section titled “Archive and ignore issues”Archive an issue to suppress alerts. Without --until, the issue is archived
forever. Use --until to set a condition for automatic unarchival:
# Archive forever (fully silenced)sentry issue archive CLI-G5
# Smart detection — unarchives when Sentry detects a spike in event frequencysentry issue archive CLI-G5 --until auto
# Duration-basedsentry issue archive CLI-G5 --until 1h # 1 hoursentry issue archive CLI-G5 --until 7d # 7 dayssentry issue archive CLI-G5 --until 2026-12-31 # specific date
# Count-based — unarchive after N more eventssentry issue archive CLI-G5 --until 100x
# User-based — unarchive after N more users affectedsentry issue archive CLI-G5 --until 10u
# Compound — count within a time windowsentry issue archive CLI-G5 --until 100x/1h # 100 events within 1 hoursentry issue archive CLI-G5 --until 10u/1d # 10 users within 1 day
# Verbose forms also worksentry issue archive CLI-G5 --until 10events/2hours
# 'ignore' is an alias for 'archive'sentry issue ignore CLI-G5 --until auto