Skip to main content

sentry issue list

List issues from Sentry projects. Supports monorepos with multiple detected projects.

Usage

Target Patterns

The list command supports multiple target resolution strategies:

Auto-Detection

When no target is specified, Sentry CLI automatically detects your project by:
  • Scanning .env files for DSNs
  • Parsing source code (JavaScript, Python, Go, Java, Ruby, PHP)
  • Walking up from current directory to find project boundaries
  • Using cached project information
In monorepos with multiple Sentry projects, all detected projects are shown with short aliases for easy navigation.

Parameters

string
Organization and/or project identifier. See target patterns above.

Flags

string
Search query using Sentry search syntax. Filter issues by error message, tags, or custom attributes.Alias: -qExample:
number
default:"25"
Total number of issues to display (max 1000). When multiple projects are detected, the limit is distributed evenly across them.Alias: -nExample:
string
default:"date"
Sort order for issues. Valid values:
  • date - Most recently seen issues first (default)
  • new - Most recently created issues first
  • freq - Most frequently occurring issues first
  • user - Issues affecting the most users first
Alias: -sExample:
string
default:"90d"
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:
string
Pagination cursor for multi-page results. Use last to continue from the previous page.Alias: -cExample:
boolean
default:"false"
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:
  1. Phase 1: Each project gets ceil(limit / num_projects) quota
  2. Phase 2: If total fetched < limit and some projects have more issues, surplus is redistributed
  3. Trimming: Results are trimmed to the global limit while guaranteeing at least one issue per project
This ensures fair representation across all projects while staying within the specified limit.

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 last to 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