sentry-cli build snapshots adds --selective
Introduced 2026-04-20 · score 0.92
HOW TO USE IT
When the snapshot directory contains only a subset of images, run `sentry-cli build snapshots` with `--selective` to mark the upload as selective. On PRs, removals and renames cannot be detected for selective uploads.
sentry-cli build snapshots <IMAGE_DIRECTORY> --app-id <APP_ID> --project <PROJECT_SLUG> --selectiveWHY THIS HELPS
When building a snapshot upload that contains only a subset of images, mark it as selective.
REQUIREMENTS AND LIMITATIONS
- Version: 3.4.0
- <IMAGE_DIRECTORY> (required): Path to the folder containing images to upload.
- --app-id <APP_ID> (required): Application identifier.
- --project <PROJECT_SLUG> (required): Project selection; the command accepts the shared project argument.
- --selective: Marks the upload as containing only a subset of images; removals and renames cannot be detected on PRs.
- Prerequisite: Use sentry-cli 3.4.0 or later.
- Prerequisite: The command requires an authenticated Sentry CLI session to upload snapshots.
- Use this flag when the upload contains only a subset of images.
FIRST-PARTY EVIDENCE
- https://github.com/getsentry/sentry-cli/releases/tag/3.4.0
- https://github.com/getsentry/sentry-cli/blob/3.4.0/src/commands/build/snapshots.rs
- https://github.com/EmergeTools/SnapshotPreviews/blob/main/README.md
Check the installed version and the source before using it. Entry JSON