Usage
Target Patterns
The command supports multiple targeting modes:- Auto-detect (no argument): Detect from DSN or config defaults
- Organization listing (
<org>/): List all projects in an org with pagination - Explicit target (
<org>/<project>): Show a specific project - Cross-org search (
<project>): Find a project across all accessible orgs
Examples
Flags
--limit
Alias: -n
Maximum number of projects to show.
- Default:
25 - Example:
sentry project list --limit 50
--platform
Alias: -p
Filter projects by platform (case-insensitive partial match).
- Example:
sentry project list --platform javascript - Example:
sentry project list --platform python
--cursor
Alias: -c
Cursor for pagination. Use last to continue from the last page, or provide a specific cursor value.
Note: Cursor pagination requires the <org>/ form.
- Example:
sentry project list sentry/ -c last - Example:
sentry project list sentry/ -c <cursor>
--json
Output results as JSON instead of a human-readable table.
- Example:
sentry project list --json
Pagination
When listing projects for a specific organization using the<org>/ form, cursor-based pagination is available:
Output
Table Format (Default)
Displays projects in a table with columns:- ORG - Organization slug
- PROJECT - Project slug
- NAME - Project display name
- PLATFORM - Project platform (if set)
JSON Format
With--json, outputs an object with:
data- Array of project objectshasMore- Boolean indicating more results availablenextCursor(paginated mode only) - Cursor for the next pagehint(when hasMore is true) - Suggested command for pagination
id- Project IDslug- Project slugname- Project nameplatform- Platform identifierorgSlug- Organization slug (added by CLI)
Examples
List projects with platform filter
List projects in a specific org with pagination
Get JSON output for scripting
Find a project across all organizations
Notes
- Auto-detect mode resolves organizations from config defaults or by scanning for DSNs in your codebase
- The
--platformflag performs case-insensitive partial matching (e.g.,javascriptmatchesjavascript-react) - In auto-detect mode with multiple orgs, the limit multiplier adjusts to show results from all orgs
- Self-hosted DSNs that cannot be resolved will show a note with the count of skipped DSNs