Repository navigation
Open
Description
Tracking issue for cutting sentry v4 as the Sentry CLI, replacing getsentry/sentry-cli (v3, frozen at 3.8.2). Every v3 distribution channel moves to v4.
Migration guide: https://cli.sentry.dev/migrating-from-v3/ · Codemod: npx codemod@latest @getsentry/cli3to4 · Linear: MCP-1187
Decisions
- npm
@sentry/clipublishes v4, then gets deprecated in favor ofsentry. The@sentry/cli-<platform>packages get no v4; they stay at 3.x. - PyPI
sentry-cli(+sentry-pypi), Homebrewsentry-cli, Docker Hubgetsentry/sentry-cli,downloads.sentry-cdn.com, and registryapps/sentry-cliall move to v4. sentry.io/get-cliserves the v4 installer.- No
sentry-clialias or stub; the migration guide's shim covers it. --allow-failurestays a shim (Support non-fatal command failures in the new Sentry CLI #1582); no native flag.- Platforms: add
linux-x64-musl(needslibstdc++andlibatomicon Alpine) andwin32-arm64, both official Node builds. Everything else usesnpm install -g sentry. - WASM source maps ship both ways: feat(sourcemap): Add wasm sourcemap support for inject and upload #1629 and feat(cli): Upload WASM source maps next to their modules as debug files #2502.
@sentry/mcp-servermoves to 4.0.0 in lockstep.- sentry-docs
docs/cli/*redirects to cli.sentry.dev. - The wizard comes in as
sentry wizardbefore v4 (Port sentry-wizard into the CLI assentry wizard#2511). Unifying it withinitis Unify thesentry initandsentry wizardsetup flows #2510, after v4. - The getsentry/cli upgrade fallback in
binary.tsgoes away; 0.45.0 already looks in toolkit first.
Blockers (in priority order; tracks run in parallel)
P0
- Distribution channels: Craft targets for npm
@sentry/cli, PyPI, GCS/CDN, Homebrewsentry-cli, registryapps/sentry-cli, plus publish credentials. - Sourcemap parity: fix(cli): Wait for sourcemap processing in CI #2507 (
sentry sourcemap uploadhas no--wait, so failed uploads exit 0 #2501),sentry sourcemap upload --no-rewritedrops debug IDs already in the files #2500, fix(cli): Reuse a debug ID that a bundle only registers at runtime #2270 (sourcemap inject/uploadmints a second debug ID for a file that registers one but has no//# debugId=comment #2269), fix(cli): Skip a missing directory in sourcemap upload --allow-empty #2216. (sourcemap inject/upload doesn't recognize a debug ID snippet minified to template literals and shifts Vite 8 chunks one line #2248 was a duplicate ofsourcemap inject/uploadadds a second debug ID snippet to files that already register one (Oxc-minified, React Native Metro), shifting the source map by one line #2267, fixed in 0.50.0.) - set-commits / debug-files parity: fix(cli): Start the set-commits fallback at the previous release #2478 (
release set-commits: the local fallback ignores the previous release's commit #2472), Debug file uploads provide no progress feedback #1472, Debug file upload output shows IDs instead of slugs #1473. - WASM: feat(debug-files): Add wasm-upload command for WASM debug setup #1628 → feat(sourcemap): Add wasm sourcemap support for inject and upload #1629, plus feat(cli): Upload WASM source maps next to their modules as debug files #2502 (needs feat(debug-files): Store WASM source maps as debug files sentry#132523 deployed).
-
sentry wizard: Port sentry-wizard into the CLI assentry wizard#2511.
P1
- Platforms:
linux-x64-muslandwin32-arm64binaries, the installers, andcli upgrade. - Docker: a spotlight-style image (
debian:bookworm-slim+ binary) togetsentry/sentry-cli. - getsentry/sentry: v4
get-cli, a check of thechunk.pyUser-Agent gate at 4.0.0, and v4 snippets in the UI (merge at launch). - sentry-docs: blanket
docs/cli/*redirect (merge at launch) and the stale getsentry/cli link.
P2
- Remove the getsentry/cli upgrade fallback in
binary.tsand fix the stale release links inhuman.ts. - Numeric issue IDs bypass project-scoped MCP sessions #2237 before MCP
--commands(feat(mcp): Serve each exposed CLI command as its own MCP tool #1922) ships.
Release
- Dispatch
release.ymlwithproduct=cli version=4.0.0. -
npm deprecate @sentry/cli→sentry, and merge the launch PRs.
After v4
- Consumers: Migrate from @sentry/cli to the new getsentry/cli sentry-react-native#6770, Migrate the Fastlane plugin to the new Sentry CLI sentry-fastlane-plugin#536, Migrate Cocoa test-app scripts to the new Sentry CLI sentry-cocoa#9169, Plan sentry-maven-plugin migration to the new Sentry CLI sentry-maven-plugin#292; android-gradle-plugin, dart-plugin, unity and action-release still need issues.
- Bump
@sentry/bundler-pluginsoffsentry ^0.50.0. - sentry-docs platform pages (~89) to v4 commands.
- Unify the
sentry initandsentry wizardsetup flows #2510: unifyinitandwizard.
Done
- Codemod (Publish sentry-v3-to-v4 codemod to the Codemod registry #1481, feat(cli): Port the v3-to-v4 codemod from the archived getsentry/cli as cli3to4 #1968, docs(cli): Point the v3 migration guide at the published codemod #1977) · install checksums (feat(cli): Publish install script checksums with each release #1962)
- getsentry/cli archived; the registry, Homebrew
sentry, install scripts and npm metadata point at toolkit - sentry-cli README deprecation notice (docs(readme): add notice pointing to the new Sentry CLI sentry-cli#3315)
- Bundler plugins on
sentry(feat(bundler-plugins)!: Migrate from @sentry/cli to the sentry CLI SDK sentry-javascript#23398)
Related: #1357 (CLI + MCP unification).
via @BYK.
--
Metadata
Metadata
Assignees
Labels
No labels
Activity
linear-code commentedon Nov 4, 2026
MCP-1187
feat(cli): Port the v3-to-v4 codemod from the archived getsentry/cli …
docs(cli): Point the v3 migration guide at the published codemod (#1977)
feat(cli): Default get-cli v4 installs to /usr/local/bin
docs(develop): Point Sentry CLI checklist link at getsentry/toolkit (#…
fix(cli): Route bare-major SENTRY_CLI_VERSION pins to sentry-cli
ref(cli): Drop the getsentry/cli upgrade fallback (#2516)
fix(cli): Install Zsh completions for legacy sentry-cli 3.x
feat(cli): add sentry wizard with Next.js (#2519)