Documentation Index
Fetch the complete documentation index at: https://mintlify.com/getsentry/cli/llms.txt
Use this file to discover all available pages before exploring further.
sentry issue list
List issues from Sentry projects. Supports monorepos with multiple detected projects.Usage
Target Patterns
Thelist command supports multiple target resolution strategies:
Auto-Detection
When no target is specified, Sentry CLI automatically detects your project by:- Scanning
.envfiles for DSNs - Parsing source code (JavaScript, Python, Go, Java, Ruby, PHP)
- Walking up from current directory to find project boundaries
- Using cached project information
Parameters
Organization and/or project identifier. See target patterns above.
Flags
Search query using Sentry search syntax. Filter issues by error message, tags, or custom attributes.Alias:
-qExample:Total number of issues to display (max 1000). When multiple projects are detected, the limit is distributed evenly across them.Alias:
-nExample:Sort order for issues. Valid values:
date- Most recently seen issues first (default)new- Most recently created issues firstfreq- Most frequently occurring issues firstuser- Issues affecting the most users first
-sExample:Time period for issue activity. Only issues with activity in this period are shown.Alias:
-tFormat: <number><unit> where unit is h (hours), d (days), or w (weeks)Example:Pagination cursor for multi-page results. Use
last to continue from the previous page.Alias: -cExample:Output results as JSON for scripting and integration with other tools.Example:
Examples
Basic Usage
Filtering and Sorting
Pagination
JSON Output
Sample Output
Human-Readable Format
Multi-Project Format
JSON Format
Budget Distribution
When multiple projects are detected, the--limit is distributed evenly across them:
- Phase 1: Each project gets
ceil(limit / num_projects)quota - Phase 2: If total fetched < limit and some projects have more issues, surplus is redistributed
- Trimming: Results are trimmed to the global limit while guaranteeing at least one issue per project
Notes
- The API caps individual requests at 100 issues per page. The CLI automatically handles pagination to reach your specified
--limit(up to 1000). - Use
--cursor lastto fetch the next page without re-fetching previous results. - The cursor encodes all search parameters (sort, query, period), so changing filters resets pagination.
- In org-wide mode (
org/), the ALIAS column helps identify which project each issue belongs to.
See Also
- sentry issue view - View detailed information about a specific issue
- sentry issue explain - Get AI-powered root cause analysis
- Project Resolution - How auto-detection works
- Monorepo Support - Working with multiple projects