npm / @sentry/cli
@sentry/cli
What changed in @sentry/cli 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
53 breaking6 security8 deprecations30 new APIs and options5 performance13 behavior and defaults2 tooling38 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@sentry/cli 389 changes
Breaking changes 28
The Docker image now requires ca-certificates 20261020-r0 or newer, removing distrusted eMudhra/emSign root certificates.
The URL and non-embedded auth token are no longer combined when they come from different configuration files; configure them in the same file or through CLI arguments and environment variables.
The experimental flag was removed from build commands.
The experimental flag was removed from snapshots commands.
Events no longer send environment variables.
Rejects snapshot uploads with a PR number but no base SHA because comparisons require a base reference.
String and number options now validate input types, and array values are no longer flattened into separate CLI arguments.
Legacy API key authentication was removed. Authenticate with an Auth Token instead.
The configuration file field for legacy API key authentication was removed; use an Auth Token instead.
The JavaScript API option for legacy API key authentication was removed; use an Auth Token instead.
The npm package no longer supports Node.js versions below 18. The minimum required version is 18.0.0.
The environment variable no longer provides authentication; use an Auth Token instead.
The JavaScript wrapper now uses named exports instead of default exports; update imports to use the named SentryCli export.
The files subcommands were removed; use sentry-cli sourcemaps upload to upload source maps.
The releases files subcommands were removed because release-file management has been deprecated in Sentry.
The no-op --started argument was removed; stop passing it.
The deprecated send-metric subcommands were removed because Sentry no longer accepts the data they send.
The deprecated command was removed; source map problems can be debugged using Sentry's in-product Unminify Code flow.
The deprecated no-op --use-artifact-bundle flag was removed.
The --android-manifest argument was removed because the information it supplied is no longer visible in Sentry.
The --app-id argument was removed because the information it supplied is no longer visible in Sentry.
The --platform argument was removed because the information it supplied is no longer visible in Sentry.
The --version argument was removed because the information it supplied is no longer visible in Sentry.
The --version-code argument was removed because the information it supplied is no longer visible in Sentry.
The live parameter now accepts only booleans. With true, zero exit status resolves the promise with "success (live mode)" and non-zero status rejects it with an error message.
The apiKey option was removed; use an Auth Token via authToken instead.
The SentryCliReleases type export was removed.
The deprecated no-op useArtifactBundle option was removed; stop passing it.
Security 6
Xcode Info.plist preprocessing is disabled by default during release inference; use this option only for trusted projects that require preprocessing.
TLS verification is disabled only when this setting is
false, case-insensitively.Generated arguments, including paths, tags, release names, and the CLI path, are shell-escaped.
Maintains restrictive file permissions when updating existing config files.
Verifies the downloaded binary checksum before replacing the current executable.
Snapshot uploads no longer send the Sentry auth token to Objectstore.
New APIs and options 18
Adds PE DWARF companion support.
Adds a command for locally comparing directories of PNG snapshot images using odiff.
Adds a command for downloading baseline snapshot images from Sentry.
Adds a flag for detecting image removals and renames in selective builds.
Adds Windows ARM64 PE unwind support.
Adds --selective to indicate that a snapshot upload contains only a subset of images.
Adds --exclude to specify custom glob patterns for excluding files or directories from source collection.
Adds a command to download installable builds (IPA/APK) by build ID.
Adds bulk upload of code mappings from a JSON file, linking stack trace paths to repository source paths; large files are split into batches.
Allows the default branch to be specified explicitly; otherwise it is inferred from local git remotes.
Allows the repository name to be specified explicitly; otherwise it is inferred from local git remotes.
The snapshots upload command accepts VCS parameters (preprod).
Moves the ProGuard upload command to
sentry-cli proguard upload;sentry-cli upload-proguardremains supported as an alias.Adds a command to compute and print the UUID for a ProGuard mapping file.
Adds an experimental command to upload files from a specified directory to Sentry's Objectstore and associate them with a snapshot identifier.
Adds the --install-group parameter to control update visibility between builds.
Adds sourceMaps.inject() for injecting debug IDs.
The JavaScript API accepts a projects array of project slugs in releases.newDeploy(), enabling multi-project support.
Performance 4
The preprod snapshot manifest is compressed with zstd.
Skips uploading images that already exist in objectstore by batch-checking with HEAD requests first.
Image hashing is parallelized with rayon.
Uploads size analysis builds using the faster zstd compression algorithm.
Behavior and default changes 8
Snapshot images are uploaded to the objectstore usecase chosen by the server instead of a hardcoded one.
When multiple files strip to the same URL, subsequent duplicates are skipped with a warning pointing users to --exclude to scope the bundle to a single variant.
Sentry CLI now officially supports self-hosted Sentry versions 24.11.1 and above.
The minimum supported self-hosted Sentry version is now part of the public API and will only increase in a major Sentry CLI release.
Source map debug IDs are now written under debugId. The CLI can still read debug_id, but writes or rewrites source maps using debugId.
The command now tracks recognized Sentry plugin versions from SENTRY_PIPELINE and writes them to .sentry-cli-metadata.txt in uploaded build archives.
The command now uses chunked uploading by default, so users who set SENTRY_EXPERIMENTAL_PROGUARD_CHUNK_UPLOAD to opt in can stop setting it.
Recognized Sentry plugin versions in this environment variable are automatically tracked by sentry-cli build upload and included in uploaded archive metadata.
Tooling 2
IPA uploads now support dSYM files.
Can run directly on a project root, collecting JVM source files while respecting .gitignore and excluding common build output directories.
Fixes and other changes 23
Snapshot builds are created for selective uploads with no affected images when a complete filename manifest is provided.
Debug IDs are now generated by hashing both the JS and sourcemap bytes, preventing collisions between distinct JS files with identical sourcemaps.
Uses the new archive endpoint, triggering the archive build and polling until it is ready before downloading.
Shows a clear project-renamed error when uploading to a renamed project slug instead of a cryptic JSON parse failure.
The update nagger now shows when a newer version is available.
Respects this environment variable when configuring TLS certificate authorities.
Improves the error message shown when the organization slug is missing from configuration.
Bundle URLs now strip the module and source-set path prefix so Symbolicator can resolve them from package-based stack traces.
Uploads are chunked to avoid file descriptor exhaustion and 413 errors when uploading hundreds of images.
When the progress bar is disabled, completion messages no longer produce spurious stderr output that some CI systems treat as errors.
Manifest keys preserve subdirectory structure instead of flattening paths to bare filenames.
Non-base64 embedded sourcemaps are skipped during injection.
ProGuard mapping files without line information are now accepted instead of rejected.
The command now correctly resolves the organization from the auth token payload.
DNS resolution failures for
sentry.iorequests are retried to reduce intermittent failures for some users.Adds a timeout to the polling loop to prevent an infinite loop when the server returns an unexpected state.
Fixes the command so it accepts the --url argument.
Recognizes *.ghe.com URLs as the github_enterprise VCS provider.
The command now correctly filters releases by a single project when supplied via --project; filtering by multiple projects is not supported.
Project IDs can be used with this command for users with self-hosted Sentry instances on versions older than 25.12.1.
Fixed Intel-based macOS systems so Sentry CLI respects self-signed certificates trusted in the macOS keychain.
On ARM-based macOS systems, Sentry CLI now respects self-signed certificates trusted in the macOS keychain.
Fixed a misleading error that blamed unsupported chunk uploading when the actual error was a non-existent organization.
@sentry/cli 266 changes
Breaking changes 25
Validates --base-sha as a valid SHA1 sum; an empty string is allowed and unsets the value instead of using the default.
Validates --head-sha as a valid SHA1 sum; an empty string is allowed and unsets the value instead of using the default.
Removes the command; the notes recommend using 1.x if the functionality is still needed.
Renames the environment variable to SENTRY_HEADER.
Renames this configuration key to http.header.
Removes the subcommand; use debug-files check instead.
Introduces this configuration key as the replacement for defaults.custom_header.
Removes the command because support for this feature has been dropped.
Raises the minimal required Node version to v12.
Removes the subcommand; use react-native appcenter instead.
Removes the command; use react-native gradle instead.
Removes the command; use react-native xcode instead.
Removes the deprecated hidden --verbose flag.
Renames the command's --header argument to --file-header.
Removes the deprecated hidden --no-abbrev flag.
Removes the deprecated hidden --ref flag.
Makes ignore-empty the default behavior and removes the --ignore-empty flag.
Removes --rewrite because rewriting is now the default behavior.
Removes the deprecated hidden --verbose flag.
Introduces this environment variable as the replacement for CUSTOM_HEADER.
Removes this environment variable in favor of SENTRYCLI_NO_PROGRESS_BAR.
Introduces this environment variable as the replacement for SENTRY_NO_PROGRESS_BAR.
Removes the deprecated hidden --upload-symbol-maps flag.
Removes the command; use debug-files upload instead.
Removes the with_crash_reporting crate feature and crash_reporting-related code; no changes are required.
Deprecations 8
API key authentication is deprecated; users should generate and use an Auth Token instead.
The
--no-dedupeflag is deprecated because it is no longer relevant for sourcemap uploads to modern Sentry servers and was made a no-op.The
--android-manifestflag is deprecated because it has been a no-op and will be removed in the next major.The
--platformflag is deprecated because it has been a no-op and will be removed in the next major.Release bundle uploads are deprecated and will be removed in Sentry CLI 3.x in favor of artifact bundles. Self-hosted users must upgrade to Sentry 23.6.2 or later before upgrading to CLI 3.x.
The flag is deprecated; stop using it because its value has never affected deobfuscation and is no longer visible in Sentry.
The flag is deprecated; stop using it because its value has never affected deobfuscation and is no longer visible in Sentry.
The flag is deprecated; stop using it because its value has never affected deobfuscation and is no longer visible in Sentry.
New APIs and options 12
Adds an argument to force-enable automatic Git data collection, overriding the default behavior.
Adds an argument to force-disable automatic Git data collection, overriding the default behavior.
Adds a projects field to the source map upload options.
Adds a command combining the functionality of difutil and upload-dif.
Adds deploys as a top-level command, extracted from releases deploys.
Implements the --quiet flag for this command.
Adds files as a top-level command, extracted from releases files.
Adds a global argument that supports multiple occurrences to configure outgoing requests.
Adds a global flag to silence stdout output; it is implemented only for selected subcommands.
Implements the --quiet flag for this command.
Adds the sourcemaps resolve command.
Adds sourcemaps upload as a top-level command, extracted from releases files upload-sourcemaps.
Performance 1
The command is slightly faster by eliminating an HTTP request to the Sentry server that was not required in most cases.
Behavior and default changes 5
Git metadata is now auto-detected only in CI environments by default, preventing local development builds from triggering GitHub status checks for size analysis.
The command no longer makes HTTP requests to Sentry, so auth tokens are no longer needed and it can run offline.
Build upload archives now include CLI version metadata.
The build upload commands are no longer marked experimental, though build uploads remain in closed beta on the server side.
Makes --auth-token a global argument.
Fixes and other changes 15
The postinstall script uses node directly instead of npm run, keeping it compatible with package managers other than npm.
Automatically detects the correct branch or tag reference in non-PR GitHub Actions workflows using the GITHUB_REF_NAME environment variable.
Fixes injection of JavaScript code into certain incorrectly formatted source map files, preventing corruption of their JSON structure.
An empty string now explicitly clears the default value instead of resulting in a 400 error.
An empty string now explicitly clears the default value instead of resulting in a 400 error.
An empty string now explicitly clears the default value instead of resulting in a 400 error.
An empty string now explicitly clears the default value instead of resulting in a 400 error.
An empty string now explicitly clears the default value instead of resulting in a 400 error.
Auto-inference skips setting base_ref when it equals head_sha, avoiding a meaningless comparison of a commit to itself.
Auto-inference skips setting base_sha when it equals head_sha, avoiding a meaningless comparison of a commit to itself.
When the supplied organization does not exist, the error now correctly identifies that instead of suggesting artifact bundle support is missing.
Autofilled git base-ref metadata now works in git repos, not only in GitHub workflows.
Autofilled git base-sha metadata now works in git repos, not only in GitHub workflows.
Fixes lost stderr output during progress bars when stderr is redirected, including in CI environments.
All ProgressBar instances and logs always write to stderr.