Skip to content
DocsGitHub

repo

Work with Sentry repositories

List repositories

Arguments:

Argument Description
[<org/project>] <org>/ (all), <org>/<name> or <name> (a project, else matching names), or a name glob (<org>/web-*)

Options:

Option Description
-n, --limit <limit> Maximum number of repositories to list (default: "25")
-f, --fresh Bypass cache, re-detect projects, and fetch fresh data
-c, --cursor <cursor> Navigate pages: "next", "prev", "first" (or raw cursor string)

Examples:

Terminal window
# List repositories (organization auto-detected)
sentry repo list
# List repositories in an organization
sentry repo list my-org/
# Fetch the next page
sentry repo list my-org/ -c next
# Only repositories whose name matches a glob
sentry repo list 'my-org/getsentry/*'
# Repositories named like 'sentry-python' (fuzzy when nothing matches exactly)
sentry repo list my-org/sentry-pyhton
# Output as JSON
sentry repo list --json

All commands support --json for machine-readable output and --fields to select specific JSON fields.