feat(build): Add build download command#3221
Conversation
Add a new `sentry-cli build download` subcommand that downloads installable builds (IPA/APK) from a project by build ID. The command fetches install details from the API, then downloads the installable artifact with the correct binary format. For iOS builds, the plist manifest format is automatically swapped to IPA. The default output filename uses the correct extension based on the platform (e.g., .apk for Android, .ipa for iOS). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
|
Please check and resolve the open comments from the AI reviewers, before I do a full review. If any comments are inaccurate or non-actionable, please indicate that with a 👎 and mark the comment as resolved. Thanks! 🙏 |
|
Resolved! |
szokeasaurusrex
left a comment
There was a problem hiding this comment.
Looks good, but could you please add a test for this new functionality (preferably in this PR, otherwise in a follow up)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| Custom headers that should be attached to all requests | ||
| in key:value format. | ||
|
|
||
| -p, --project <PROJECT> |
There was a problem hiding this comment.
Are builds project or org scoped?
There was a problem hiding this comment.
Good point, the project arg is optional here i just tested.
Builds are org-scoped, so the project flag is unnecessary on the download subcommand. Also marks the command as [EXPERIMENTAL] to match the pattern used by the snapshots subcommand. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
a5d712d to
3b0c857
Compare

Summary
sentry-cli build downloadsubcommand to download installable builds (IPA/APK) by build IDThis only works for installable builds. Non-installable builds will show an error message
Build {build_id} is not installable.This requires a personal auth token with the
org:readscopeFixes EME-272