/build
- `build upload` supports **Android APK/AAB** and **iOS XCArchive/IPA**. An XCArchive is a directory; an IPA is converted to an XCArchive layout for upload. **Sentry SaaS only.** - `--dsym` attaches debug symbols to a **single IPA** upload. Repeat the flag for multiple inputs:
> /plugin marketplace add getsentry/toolkit> /plugin install sentry-mcp@sentry-mcp
Command definition
build.mdImportant Notes
- `build upload` supports **Android APK/AAB** and **iOS XCArchive/IPA**. An
XCArchive is a directory; an IPA is converted to an XCArchive layout for upload. **Sentry SaaS only.**
- `--dsym` attaches debug symbols to a **single IPA** upload. Repeat the flag
for multiple inputs: each may be a `.dSYM` bundle, a directory of bundles, or a ZIP of either. Symlinks, unsafe ZIP paths, checksum mismatches, empty bundles, and duplicate bundle names are rejected. IPA and dSYM contents are streamed from disk.
- The **macOS arm64 standalone binary** expands iOS `.car` asset catalogs with
CoreUI on macOS 13, 14, 15, and 26. It adds the legacy `ParsedAssets/` manifest and decoded images for per-asset size analysis and image optimization insights. Other runtimes, or failed extractions, upload the original catalogs unchanged. XCArchive symlinks and Unix file permissions are preserved.
- Multiple paths may be uploaded at once; the command exits non-zero if any
build fails to upload.
- Git metadata (commit, branch, PR number, repo) is **auto-collected in CI**
(GitHub Actions env vars + the local git repo). Use `--no-git-metadata` to disable it, `--force-git-metadata` to collect outside CI, or the explicit `--head-sha` / `--base-sha` / `--head-ref` / `--base-ref` / `--pr-number` / `--vcs-provider` / `--head-repo-name` / `--base-repo-name` flags to override.
- `build download` fetches a mobile build artifact (APK or IPA) previously
uploaded to Sentry's preprod system for size analysis. **Sentry SaaS only.**
- The build must be installable. Builds that are still processing — or that have
no downloadable artifact — cannot be downloaded.
- Without `--output`, the artifact is saved as
`preprod_artifact_<build-id>.<ext>` in the current directory.
- The organization is resolved from `--org`, `SENTRY_ORG`, config defaults, or a
detected DSN.
Read more
Important Notes
- `build upload` supports **Android APK/AAB** and **iOS XCArchive/IPA**. An
XCArchive is a directory; an IPA is converted to an XCArchive layout for upload. **Sentry SaaS only.**
- `--dsym` attaches debug symbols to a **single IPA** upload. Repeat the flag
for multiple inputs: each may be a `.dSYM` bundle, a directory of bundles, or a ZIP of either. Symlinks, unsafe ZIP paths, checksum mismatches, empty bundles, and duplicate bundle names are rejected. IPA and dSYM contents are streamed from disk.
- The **macOS arm64 standalone binary** expands iOS `.car` asset catalogs with
CoreUI on macOS 13, 14, 15, and 26. It adds the legacy `ParsedAssets/` manifest and decoded images for per-asset size analysis and image optimization insights. Other runtimes, or failed extractions, upload the original catalogs unchanged. XCArchive symlinks and Unix file permissions are preserved.
- Multiple paths may be uploaded at once; the command exits non-zero if any
build fails to upload.
- Git metadata (commit, branch, PR number, repo) is **auto-collected in CI**
(GitHub Actions env vars + the local git repo). Use `--no-git-metadata` to disable it, `--force-git-metadata` to collect outside CI, or the explicit `--head-sha` / `--base-sha` / `--head-ref` / `--base-ref` / `--pr-number` / `--vcs-provider` / `--head-repo-name` / `--base-repo-name` flags to override.
- `build download` fetches a mobile build artifact (APK or IPA) previously
uploaded to Sentry's preprod system for size analysis. **Sentry SaaS only.**
- The build must be installable. Builds that are still processing — or that have
no downloadable artifact — cannot be downloaded.
- Without `--output`, the artifact is saved as
`preprod_artifact_<build-id>.<ext>` in the current directory.
- The organization is resolved from `--org`, `SENTRY_ORG`, config defaults, or a
detected DSN.
This repository contains the Sentry CLI, the Sentry MCP server, and shared packages. For the CLI, see the CLI guide and the published documentation at . The documentation index covers both products and shared contributor guidance.
Other commands on toolkit.
alert
CommandTriggers take `alertThreshold`, an optional `label` (`critical` or `warning`), `resolveThreshold`, and `thresholdType` (`0`…
api
CommandEndpoints are relative to `/api/0/` — the prefix is added automatically. Absolute HTTP(S) Sentry URLs also work; their origin is…
attribute
CommandAttributes are the typed key-value data attached to spans, logs, and metric samples. Their keys can be passed to other commands…
auth
CommandBare `sentry auth` logs in when you're logged out and shows status when you're already authenticated. `sentry auth login` always…
cli
Command`sentry cli upgrade nightly` and `sentry cli upgrade stable` switch channels. After switching, bare `sentry cli upgrade` will…
More commands from other plugins.
build
CommandImplement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

