unstale

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

@unstale/cli on npm

@sentry/cli 389 changes

Breaking changes 28

  • The Docker image now requires ca-certificates 20261020-r0 or newer, removing distrusted eMudhra/emSign root certificates.

    3.8.1release notes

  • 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.

    3.6.2release notes

  • The experimental flag was removed from build commands.

    3.5.1release notes

  • The experimental flag was removed from snapshots commands.

    3.5.1release notes

  • Events no longer send environment variables.

    2.58.6, 3.4.3release notesrelease notes

  • Rejects snapshot uploads with a PR number but no base SHA because comparisons require a base reference.

    3.4.3release notes

  • String and number options now validate input types, and array values are no longer flattened into separate CLI arguments.

    3.4.2release notes

  • Legacy API key authentication was removed. Authenticate with an Auth Token instead.

    3.0.0release notes

  • The configuration file field for legacy API key authentication was removed; use an Auth Token instead.

    3.0.0release notes

  • The JavaScript API option for legacy API key authentication was removed; use an Auth Token instead.

    3.0.0release notes

  • The npm package no longer supports Node.js versions below 18. The minimum required version is 18.0.0.

    3.0.0release notes

  • The environment variable no longer provides authentication; use an Auth Token instead.

    3.0.0release notes

  • The JavaScript wrapper now uses named exports instead of default exports; update imports to use the named SentryCli export.

    3.0.0release notes

  • The files subcommands were removed; use sentry-cli sourcemaps upload to upload source maps.

    3.0.0release notes

  • The releases files subcommands were removed because release-file management has been deprecated in Sentry.

    3.0.0release notes

  • The no-op --started argument was removed; stop passing it.

    3.0.0release notes

  • The deprecated send-metric subcommands were removed because Sentry no longer accepts the data they send.

    3.0.0release notes

  • The deprecated command was removed; source map problems can be debugged using Sentry's in-product Unminify Code flow.

    3.0.0release notes

  • The deprecated no-op --use-artifact-bundle flag was removed.

    3.0.0release notes

  • The --android-manifest argument was removed because the information it supplied is no longer visible in Sentry.

    3.0.0release notes

  • The --app-id argument was removed because the information it supplied is no longer visible in Sentry.

    3.0.0release notes

  • The --platform argument was removed because the information it supplied is no longer visible in Sentry.

    3.0.0release notes

  • The --version argument was removed because the information it supplied is no longer visible in Sentry.

    3.0.0release notes

  • The --version-code argument was removed because the information it supplied is no longer visible in Sentry.

    3.0.0release notes

  • 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.

    3.0.0release notes

  • The apiKey option was removed; use an Auth Token via authToken instead.

    3.0.0release notes

  • The SentryCliReleases type export was removed.

    3.0.0release notes

  • The deprecated no-op useArtifactBundle option was removed; stop passing it.

    3.0.0release notes

Security 6

  • Xcode Info.plist preprocessing is disabled by default during release inference; use this option only for trusted projects that require preprocessing.

    2.58.6, 3.4.3release notesrelease notes

  • TLS verification is disabled only when this setting is false, case-insensitively.

    2.58.6, 3.4.3release notesrelease notes

  • Generated arguments, including paths, tags, release names, and the CLI path, are shell-escaped.

    2.58.6, 3.4.3release notesrelease notes

  • Maintains restrictive file permissions when updating existing config files.

    2.58.6, 3.4.3release notesrelease notes

  • Verifies the downloaded binary checksum before replacing the current executable.

    2.58.6, 3.4.3release notesrelease notes

  • Snapshot uploads no longer send the Sentry auth token to Objectstore.

    3.4.2release notes

New APIs and options 18

  • Adds PE DWARF companion support.

    3.5.0release notes

  • Adds a command for locally comparing directories of PNG snapshot images using odiff.

    3.5.0release notes

  • Adds a command for downloading baseline snapshot images from Sentry.

    3.5.0release notes

  • Adds a flag for detecting image removals and renames in selective builds.

    3.5.0release notes

  • Adds Windows ARM64 PE unwind support.

    3.5.0release notes

  • Adds --selective to indicate that a snapshot upload contains only a subset of images.

    3.4.0release notes

  • Adds --exclude to specify custom glob patterns for excluding files or directories from source collection.

    3.4.0release notes

  • Adds a command to download installable builds (IPA/APK) by build ID.

    3.3.4release notes

  • Adds bulk upload of code mappings from a JSON file, linking stack trace paths to repository source paths; large files are split into batches.

    3.3.4release notes

  • Allows the default branch to be specified explicitly; otherwise it is inferred from local git remotes.

    3.3.4release notes

  • Allows the repository name to be specified explicitly; otherwise it is inferred from local git remotes.

    3.3.4release notes

  • The snapshots upload command accepts VCS parameters (preprod).

    3.3.2release notes

  • Moves the ProGuard upload command to sentry-cli proguard upload; sentry-cli upload-proguard remains supported as an alias.

    3.3.0release notes

  • Adds a command to compute and print the UUID for a ProGuard mapping file.

    3.3.0release notes

  • Adds an experimental command to upload files from a specified directory to Sentry's Objectstore and associate them with a snapshot identifier.

    3.2.3release notes

  • Adds the --install-group parameter to control update visibility between builds.

    3.2.0release notes

  • Adds sourceMaps.inject() for injecting debug IDs.

    3.2.0release notes

  • The JavaScript API accepts a projects array of project slugs in releases.newDeploy(), enabling multi-project support.

    3.1.0release notes

Performance 4

  • The preprod snapshot manifest is compressed with zstd.

    3.6.0release notes

  • Skips uploading images that already exist in objectstore by batch-checking with HEAD requests first.

    3.4.3release notes

  • Image hashing is parallelized with rayon.

    3.3.5release notesrelease notes

  • Uploads size analysis builds using the faster zstd compression algorithm.

    3.0.1release notes

Behavior and default changes 8

  • Snapshot images are uploaded to the objectstore usecase chosen by the server instead of a hardcoded one.

    3.8.0release notes

  • 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.

    3.4.1release notes

  • Sentry CLI now officially supports self-hosted Sentry versions 24.11.1 and above.

    3.1.0release notes

  • The minimum supported self-hosted Sentry version is now part of the public API and will only increase in a major Sentry CLI release.

    3.0.2release notes

  • Source map debug IDs are now written under debugId. The CLI can still read debug_id, but writes or rewrites source maps using debugId.

    3.0.0release notes

  • The command now tracks recognized Sentry plugin versions from SENTRY_PIPELINE and writes them to .sentry-cli-metadata.txt in uploaded build archives.

    3.0.0release notes

  • The command now uses chunked uploading by default, so users who set SENTRY_EXPERIMENTAL_PROGUARD_CHUNK_UPLOAD to opt in can stop setting it.

    3.0.0release notes

  • Recognized Sentry plugin versions in this environment variable are automatically tracked by sentry-cli build upload and included in uploaded archive metadata.

    3.0.0release notes

Tooling 2

  • IPA uploads now support dSYM files.

    3.7.0release notes

  • Can run directly on a project root, collecting JVM source files while respecting .gitignore and excluding common build output directories.

    3.4.0release notes

Fixes and other changes 23

  • Snapshot builds are created for selective uploads with no affected images when a complete filename manifest is provided.

    3.7.0release notes

  • Debug IDs are now generated by hashing both the JS and sourcemap bytes, preventing collisions between distinct JS files with identical sourcemaps.

    3.6.1release notes

  • Uses the new archive endpoint, triggering the archive build and polling until it is ready before downloading.

    3.6.0release notes

  • Shows a clear project-renamed error when uploading to a renamed project slug instead of a cryptic JSON parse failure.

    3.6.0release notes

  • The update nagger now shows when a newer version is available.

    3.6.0release notes

  • Respects this environment variable when configuring TLS certificate authorities.

    3.5.0release notes

  • Improves the error message shown when the organization slug is missing from configuration.

    3.5.0release notes

  • Bundle URLs now strip the module and source-set path prefix so Symbolicator can resolve them from package-based stack traces.

    3.4.1release notes

  • Uploads are chunked to avoid file descriptor exhaustion and 413 errors when uploading hundreds of images.

    3.4.0release notes

  • When the progress bar is disabled, completion messages no longer produce spurious stderr output that some CI systems treat as errors.

    3.4.0release notes

  • Manifest keys preserve subdirectory structure instead of flattening paths to bare filenames.

    3.4.0release notes

  • Non-base64 embedded sourcemaps are skipped during injection.

    3.3.5release notes

  • ProGuard mapping files without line information are now accepted instead of rejected.

    3.3.1release notes

  • The command now correctly resolves the organization from the auth token payload.

    3.2.1release notes

  • DNS resolution failures for sentry.io requests are retried to reduce intermittent failures for some users.

    3.2.1release notes

  • Adds a timeout to the polling loop to prevent an infinite loop when the server returns an unexpected state.

    3.2.0release notes

  • Fixes the command so it accepts the --url argument.

    3.2.0release notes

  • Recognizes *.ghe.com URLs as the github_enterprise VCS provider.

    3.2.0release notes

  • The command now correctly filters releases by a single project when supplied via --project; filtering by multiple projects is not supported.

    3.1.0release notes

  • Project IDs can be used with this command for users with self-hosted Sentry instances on versions older than 25.12.1.

    3.1.0release notes

  • Fixed Intel-based macOS systems so Sentry CLI respects self-signed certificates trusted in the macOS keychain.

    3.0.3release notes

  • On ARM-based macOS systems, Sentry CLI now respects self-signed certificates trusted in the macOS keychain.

    3.0.2release notes

  • Fixed a misleading error that blamed unsupported chunk uploading when the actual error was a non-existent organization.

    3.0.0release notes

@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.

    2.58.2release notes

  • Validates --head-sha as a valid SHA1 sum; an empty string is allowed and unsets the value instead of using the default.

    2.58.2release notes

  • Removes the command; the notes recommend using 1.x if the functionality is still needed.

    2.0.0release notes

  • Renames the environment variable to SENTRY_HEADER.

    2.0.0release notes

  • Renames this configuration key to http.header.

    2.0.0release notes

  • Removes the subcommand; use debug-files check instead.

    2.0.0release notes

  • Introduces this configuration key as the replacement for defaults.custom_header.

    2.0.0release notes

  • Removes the command because support for this feature has been dropped.

    2.0.0release notes

  • Raises the minimal required Node version to v12.

    2.0.0release notes

  • Removes the subcommand; use react-native appcenter instead.

    2.0.0release notes

  • Removes the command; use react-native gradle instead.

    2.0.0release notes

  • Removes the command; use react-native xcode instead.

    2.0.0release notes

  • Removes the deprecated hidden --verbose flag.

    2.0.0release notes

  • Renames the command's --header argument to --file-header.

    2.0.0release notes

  • Removes the deprecated hidden --no-abbrev flag.

    2.0.0release notes

  • Removes the deprecated hidden --ref flag.

    2.0.0release notes

  • Makes ignore-empty the default behavior and removes the --ignore-empty flag.

    2.0.0release notes

  • Removes --rewrite because rewriting is now the default behavior.

    2.0.0release notes

  • Removes the deprecated hidden --verbose flag.

    2.0.0release notes

  • Introduces this environment variable as the replacement for CUSTOM_HEADER.

    2.0.0release notes

  • Removes this environment variable in favor of SENTRYCLI_NO_PROGRESS_BAR.

    2.0.0release notes

  • Introduces this environment variable as the replacement for SENTRY_NO_PROGRESS_BAR.

    2.0.0release notes

  • Removes the deprecated hidden --upload-symbol-maps flag.

    2.0.0release notes

  • Removes the command; use debug-files upload instead.

    2.0.0release notes

  • Removes the with_crash_reporting crate feature and crash_reporting-related code; no changes are required.

    2.0.0release notes

Deprecations 8

  • API key authentication is deprecated; users should generate and use an Auth Token instead.

    2.58.1release notes

  • The --no-dedupe flag is deprecated because it is no longer relevant for sourcemap uploads to modern Sentry servers and was made a no-op.

    2.58.0release notes

  • The --android-manifest flag is deprecated because it has been a no-op and will be removed in the next major.

    2.58.0release notes

  • The --platform flag is deprecated because it has been a no-op and will be removed in the next major.

    2.58.0release notes

  • 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.

    2.57.0release notes

  • The flag is deprecated; stop using it because its value has never affected deobfuscation and is no longer visible in Sentry.

    2.57.0release notes

  • The flag is deprecated; stop using it because its value has never affected deobfuscation and is no longer visible in Sentry.

    2.57.0release notes

  • The flag is deprecated; stop using it because its value has never affected deobfuscation and is no longer visible in Sentry.

    2.57.0release notes

New APIs and options 12

  • Adds an argument to force-enable automatic Git data collection, overriding the default behavior.

    2.58.3release notes

  • Adds an argument to force-disable automatic Git data collection, overriding the default behavior.

    2.58.3release notes

  • Adds a projects field to the source map upload options.

    2.57.0release notes

  • Adds a command combining the functionality of difutil and upload-dif.

    2.0.0release notes

  • Adds deploys as a top-level command, extracted from releases deploys.

    2.0.0release notes

  • Implements the --quiet flag for this command.

    2.0.0release notes

  • Adds files as a top-level command, extracted from releases files.

    2.0.0release notes

  • Adds a global argument that supports multiple occurrences to configure outgoing requests.

    2.0.0release notes

  • Adds a global flag to silence stdout output; it is implemented only for selected subcommands.

    2.0.0release notes

  • Implements the --quiet flag for this command.

    2.0.0release notes

  • Adds the sourcemaps resolve command.

    2.0.0release notes

  • Adds sourcemaps upload as a top-level command, extracted from releases files upload-sourcemaps.

    2.0.0release notes

Performance 1

  • The command is slightly faster by eliminating an HTTP request to the Sentry server that was not required in most cases.

    2.58.0release notes

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.

    2.58.3release notes

  • The command no longer makes HTTP requests to Sentry, so auth tokens are no longer needed and it can run offline.

    2.58.1release notes

  • Build upload archives now include CLI version metadata.

    2.58.0release notes

  • The build upload commands are no longer marked experimental, though build uploads remain in closed beta on the server side.

    2.58.0release notes

  • Makes --auth-token a global argument.

    2.0.0release notes

Fixes and other changes 15

  • The postinstall script uses node directly instead of npm run, keeping it compatible with package managers other than npm.

    2.58.4release notes

  • Automatically detects the correct branch or tag reference in non-PR GitHub Actions workflows using the GITHUB_REF_NAME environment variable.

    2.58.3release notes

  • Fixes injection of JavaScript code into certain incorrectly formatted source map files, preventing corruption of their JSON structure.

    2.58.3release notes

  • An empty string now explicitly clears the default value instead of resulting in a 400 error.

    2.58.2release notes

  • An empty string now explicitly clears the default value instead of resulting in a 400 error.

    2.58.2release notes

  • An empty string now explicitly clears the default value instead of resulting in a 400 error.

    2.58.2release notes

  • An empty string now explicitly clears the default value instead of resulting in a 400 error.

    2.58.2release notes

  • An empty string now explicitly clears the default value instead of resulting in a 400 error.

    2.58.2release notes

  • Auto-inference skips setting base_ref when it equals head_sha, avoiding a meaningless comparison of a commit to itself.

    2.58.1release notes

  • Auto-inference skips setting base_sha when it equals head_sha, avoiding a meaningless comparison of a commit to itself.

    2.58.1release notes

  • When the supplied organization does not exist, the error now correctly identifies that instead of suggesting artifact bundle support is missing.

    2.58.1release notes

  • Autofilled git base-ref metadata now works in git repos, not only in GitHub workflows.

    2.58.0release notes

  • Autofilled git base-sha metadata now works in git repos, not only in GitHub workflows.

    2.58.0release notes

  • Fixes lost stderr output during progress bars when stderr is redirected, including in CI environments.

    2.57.0release notes

  • All ProgressBar instances and logs always write to stderr.

    2.0.0release notes