Commands
issue
Track and manage Sentry issues.
Commands
sentry issue list
List issues in a project.
sentry issue list --org <org-slug> --project <project-slug>Options:
| Option | Description |
|---|---|
--org <org-slug> | Organization slug (required) |
--project <project-slug> | Project slug (required) |
--query <query> | Search query |
--status <status> | Filter by status (unresolved, resolved, ignored) |
--limit <n> | Maximum number of issues to return |
--json | Output as JSON |
Example:
sentry issue list --org my-org --project frontendID SHORT ID TITLE COUNT USERS123456789 FRONT-ABC TypeError: Cannot read prop... 1.2k 234987654321 FRONT-DEF ReferenceError: x is not de... 456 89With search query:
sentry issue list --org my-org --project frontend --query "TypeError"sentry issue view
View details of a specific issue.
# By issue IDsentry issue view <issue-id>
# By short IDsentry issue view <short-id>Arguments:
| Argument | Description |
|---|---|
<issue-id> | The issue ID (numeric) or short ID (e.g., PROJ-ABC) |
Options:
| Option | Description |
|---|---|
-w, --web | Open in browser |
--json | Output as JSON |
Example:
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/appOpen in browser:
sentry issue view FRONT-ABC -wsentry issue explain
Analyze an issue’s root cause using Seer AI.
sentry issue explain <issue-id>This command analyzes the issue and provides:
- Identified root causes
- Reproduction steps
- Relevant code locations
The analysis may take a few minutes for new issues.
Arguments:
| Argument | Description |
|---|---|
<issue-id> | The issue ID (numeric), short ID (e.g., PROJ-ABC), or short suffix |
Options:
| Option | Description |
|---|---|
--org <org-slug> | Organization slug (required for short IDs if not auto-detected) |
--project <project-slug> | Project slug (required for short suffixes if not auto-detected) |
--force | Force new analysis even if one already exists |
--json | Output as JSON |
Examples:
# By numeric issue IDsentry issue explain 123456789
# By short IDsentry issue explain MYPROJECT-ABC --org my-org
# By short suffix (requires project context)sentry issue explain G --org my-org --project my-project
# Force a fresh analysissentry issue explain 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
sentry issue plan
Generate a solution plan for a Sentry issue using Seer AI.
sentry issue plan <issue-id>This command requires that sentry issue explain has been run first to identify the root cause. It generates a solution plan with specific implementation steps to fix the issue.
Arguments:
| Argument | Description |
|---|---|
<issue-id> | The issue ID (numeric), short ID (e.g., PROJ-ABC), or short suffix |
Options:
| Option | Description |
|---|---|
--org <org-slug> | Organization slug (required for short IDs if not auto-detected) |
--project <project-slug> | Project slug (required for short suffixes if not auto-detected) |
--cause <n> | Root cause ID to plan (required if multiple causes were identified) |
--json | Output as JSON |
Examples:
# After running explain, create a plansentry issue plan 123456789
# Specify which root cause to plan for (if multiple were found)sentry issue plan 123456789 --cause 0
# By short IDsentry issue plan MYPROJECT-ABC --org my-org --cause 1Requirements:
- Root cause analysis must be completed first (
sentry issue explain) - GitHub integration configured for your organization
- Code mappings set up for your project