Commands
snapshots
Manage and compare snapshots
Commands
Section titled “Commands”sentry snapshots download
Section titled “sentry snapshots download”Download baseline snapshot images
Options:
| Option | Description |
|---|---|
--app-id <app-id> | App identifier (e.g. my-app) to resolve the latest baseline; mutually exclusive with --snapshot-id |
--snapshot-id <snapshot-id> | Direct snapshot artifact ID; mutually exclusive with --app-id |
--branch <branch> | Git branch filter (only with --app-id) |
-o, --output <output> | Directory for extracted images (default: ./snapshots-base/) |
All commands support --json for machine-readable output and --fields to select specific JSON fields.
Examples
Section titled “Examples”# Download a specific baseline snapshot by IDsentry snapshots download --snapshot-id 1234567890
# Download the latest baseline for an app, filtered by branchsentry snapshots download --app-id my-app --branch main
# Extract images to a specific directorysentry snapshots download --app-id my-app --output ./baseline/Important Notes
Section titled “Important Notes”snapshots downloadfetches baseline snapshot images from Sentry's preprod system and extracts them to a local directory. Sentry SaaS only.- Provide exactly one of
--snapshot-id(a direct artifact ID) or--app-id(resolves the latest baseline).--branchonly applies with--app-id. - With org auth tokens, resolving by
--app-idrequires--project(a project ID or slug). - If the downloadable archive has not been built yet, the command triggers a build and waits for it (up to 5 minutes).
- Images are extracted to
./snapshots-base/by default; override with--output. - The organization is resolved from
--org,SENTRY_ORG, config defaults, or a detected DSN.