Skip to content

docs(cli): Redirect legacy /cli/ docs to cli.sentry.dev - #20979

Merged
BYK merged 11 commits into
masterfrom
docs/redirect-cli-to-cli-sentry-dev
Dec 4, 2026
Merged

BYK merged 11 commits into
masterfrom
docs/redirect-cli-to-cli-sentry-dev

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Important

Merge at the Sentry CLI v4 launch, not before. Tracked in getsentry/toolkit#1965.

Sentry CLI v4 (npm sentry, from getsentry/toolkit packages/cli) replaces sentry-cli v3. Its docs live at https://cli.sentry.dev, with a migration guide. This PR sends the legacy /cli/ section there and removes what that leaves orphaned.

Redirects

The rules go in redirects.js (Next.js redirects()), not middleware.ts or vercel.json:

  • Next.js runs config redirects before middleware, so a /cli/:path* wildcard in redirects.js catches every /cli/* URL. Exact entries in middleware.ts would never be reached.
  • scripts/no-vercel-json-redirects.mjs blocks redirects in vercel.json.
  • withMarkdownRedirects leaves external destinations as they are, so /cli/<page>.md goes to the same place.

The /cli/ index goes to the v3 migration guide, since someone opening the old CLI docs directly most likely needs to move off v3. Pages with a v4 equivalent map one-to-one. Everything else under /cli/ goes to the root.

Every redirect from the old CLI docs to cli.sentry.dev adds ?from=sentry-docs, so cli.sentry.dev can show a "these docs moved" banner that points to the migration guide and the v3 repo. That covers the /cli/* rules below and the older CLI redirects listed after the table. /ai/sentry-cli/ was already on master before this PR and stays as is. Content links to cli.sentry.dev are plain links and don't carry the param.

Source Destination (each with ?from=sentry-docs)
/cli/ https://cli.sentry.dev/migrating-from-v3/
/cli/installation/ https://cli.sentry.dev/getting-started/
/cli/configuration/ https://cli.sentry.dev/configuration/
/cli/releases/ https://cli.sentry.dev/commands/release/
/cli/dif/ https://cli.sentry.dev/commands/debug-files/
/cli/send-event/ https://cli.sentry.dev/commands/event/
/cli/crons/ https://cli.sentry.dev/commands/monitor/
/cli/logs/ https://cli.sentry.dev/commands/log/
/cli/code-mappings/ https://cli.sentry.dev/commands/code-mappings/
/cli/snapshots/ https://cli.sentry.dev/commands/snapshots/
/cli/:path* (everything else) https://cli.sentry.dev/

Older redirects that ended at /cli/... now point straight at the final target, so nothing chains through two hops. These are /account/cli/configuration/, /product/cli/:path*, the two Crons CLI redirects, and the /learn/cli/* entries in middleware.ts. The middleware.ts entry for /cli/metrics/ is removed because the wildcard now catches it first.

Cleanup

  • Removes the v3 pages in docs/cli/. Their content stays in git history.
  • Removes the "Looking for the new Sentry CLI?" banner (includes/cli-looking-for-sentry-cli.mdx), which only those pages used.
  • Removes CliChecksumTable, which only docs/cli/installation.mdx used.
  • Removes the "Sentry CLI" section from the Concepts sidebar. The "Sentry CLI" item in the Concepts top-nav dropdown now links to https://cli.sentry.dev/. The existing external "Sentry CLI" link in the AI sidebar stays.
  • Removes /cli/ from the SDK-agnostic search prefixes and the Algolia product-doc prefixes, and updates the CLI link in md-overrides/platforms.mdx.

apps.version('sentry-cli')

The release registry entry app:sentry-cli will point to v4, so:

  • includes/size-analysis/upload-cli-{android,ios}.mdx no longer print the registry version next to sentry-cli build upload instructions. The "minimum 2.58.2" note stays.
  • platform-includes/source-context/java.mdx linked to getsentry/sentry-cli/releases/tag/<registry version>, which would 404 once that version is 4.x. It now links to getsentry/sentry-cli/releases/latest.
  • The usage in docs/cli/installation.mdx goes away with the page.

sentry-cli references

On the pages this PR touches, prose and link text that named the v3 binary now say "Sentry CLI", and the Flutter releases finalize example uses sentry release finalize. Pages that #20981 rewrites for v4 are left to that PR.

.NET msbuild.mdx no longer tells workstation users to run sentry-cli login, since v4's sentry auth login doesn't write the .sentryclirc file that the MSBuild integration's bundled CLI reads. Workstations set an organization auth token in SENTRY_AUTH_TOKEN, the same as CI.

These stay on sentry-cli:

  • .NET msbuild.mdx: sentry-cli releases propose-version, which the MSBuild integration's bundled v3 CLI runs.
  • React Native legacy uploading methods: the node_modules/@sentry/cli/bin/sentry-cli path of the package the SDK installs.
  • The Flutter plugin's https://downloads.sentry-cdn.com/sentry-cli default CDN URL.
  • The /ai/sentry-cli/ redirect source, the v3 comment in redirects.js, and the Unity sentry-cli-option-configuration.png image file name.

Not in this PR

Content links that pointed to /cli/... now point straight at their cli.sentry.dev targets. Many of those pages still describe v3 (sentry-cli <command>, and section anchors that cli.sentry.dev doesn't have); updating them for v4 is follow-up work.

Screenshots

Before (production): the Concepts sidebar has a "Sentry CLI" section with the v3 pages.

Before: Concepts sidebar with Sentry CLI section

After (local): the Concepts sidebar has no CLI section.

After: Concepts sidebar without Sentry CLI section

After (local): the "Sentry CLI" item in the Concepts dropdown now links to https://cli.sentry.dev/.

After: Concepts dropdown with Sentry CLI linking to cli.sentry.dev

IS YOUR CHANGE URGENT?

  • Other deadline: Sentry CLI v4 launch (merge at launch)
  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

via @BYK.

--

View Session [Sentry]

Sentry CLI v4 replaces sentry-cli v3 and is documented at
https://cli.sentry.dev. Send /cli/ and everything under it there,
mapping pages that have a v4 equivalent one-to-one and the rest to the
root. Point older redirects that ended at /cli/ straight to the new
targets so they don't chain.

Remove the v3 pages, the "Looking for the new Sentry CLI?" banner, the
CliChecksumTable component, and the Sentry CLI section of the Concepts
sidebar. The Concepts nav entry now links to cli.sentry.dev.

The release registry entry app:sentry-cli will point to v4, so stop
injecting it next to sentry-cli v3 instructions.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Dec 4, 2026 5:27am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Dec 4, 2026 5:27am UTC

Request Review

@sentry-junior
sentry-junior Bot requested review from a team and BYK November 26, 2026 11:39
@github-actions github-actions Bot added the Priority: Needs Triage The PR description is missing valid priority information label Nov 26, 2026
@codeowner-assignment
codeowner-assignment Bot requested a review from a team November 26, 2026 11:39
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Redirect Chain Issues Detected

This PR introduces or contains redirect chains that degrade SEO and add latency.

Content Links Pointing to Redirects (127 found)

These links point to URLs that redirect. Update them to point directly to the final destination:

File Line Current Link Should Be
docs/account/auth-tokens/index.mdx 14 /cli/ https://cli.sentry.dev/
docs/api/permissions.mdx 91 /cli/releases/ https://cli.sentry.dev/commands/release/
docs/concepts/migration/index.mdx 61 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/integrations/source-code-mgmt/code-mappings/index.mdx 93 /cli/code-mappings/ https://cli.sentry.dev/commands/code-mappings/
docs/platforms/android/configuration/gradle.mdx 379 /cli/configuration/#configuration-values https://cli.sentry.dev/configuration/#configuration-values
docs/platforms/android/configuration/gradle.mdx 393 /cli/configuration/#configuration-values https://cli.sentry.dev/configuration/#configuration-values
docs/platforms/android/configuration/gradle.mdx 401 /cli/configuration/#configuration-values https://cli.sentry.dev/configuration/#configuration-values
docs/platforms/android/configuration/gradle.mdx 415 /cli/configuration/#configuration-values https://cli.sentry.dev/configuration/#configuration-values
docs/platforms/android/data-management/debug-files/file-formats/index.mdx 43 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/android/data-management/debug-files/identifiers/index.mdx 42 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
docs/platforms/android/data-management/debug-files/index.mdx 30 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/android/data-management/debug-files/source-context/index.mdx 25 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/android/data-management/debug-files/upload/index.mdx 22 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/android/enhance-errors/proguard.mdx 7 /cli/dif/#proguard-mapping-upload https://cli.sentry.dev/commands/debug-files/#proguard-mapping-upload
docs/platforms/android/migration/gradle-plugin-v2-to-v3.mdx 13 /cli/dif/#proguard-mapping-upload https://cli.sentry.dev/commands/debug-files/#proguard-mapping-upload
docs/platforms/android/snapshots/index.mdx 113 /cli/snapshots/ https://cli.sentry.dev/commands/snapshots/
docs/platforms/android/troubleshooting/index.mdx 210 /cli/ https://cli.sentry.dev/
docs/platforms/apple/common/data-management/debug-files/file-formats/index.mdx 43 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/apple/common/data-management/debug-files/identifiers/index.mdx 42 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
docs/platforms/apple/common/data-management/debug-files/index.mdx 30 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/apple/common/data-management/debug-files/source-context/index.mdx 26 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/apple/common/data-management/debug-files/upload/index.mdx 22 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/dart/guides/flutter/data-management/debug-files/file-formats/index.mdx 43 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/dart/guides/flutter/data-management/debug-files/identifiers/index.mdx 42 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
docs/platforms/dart/guides/flutter/data-management/debug-files/index.mdx 30 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/dart/guides/flutter/data-management/debug-files/source-context/index.mdx 25 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/dart/guides/flutter/data-management/debug-files/upload/index.mdx 22 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/dotnet/common/configuration/msbuild.mdx 7 /cli/ https://cli.sentry.dev/
docs/platforms/dotnet/common/configuration/msbuild.mdx 8 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/dotnet/common/configuration/msbuild.mdx 27 /cli/configuration/ https://cli.sentry.dev/configuration/
docs/platforms/dotnet/common/configuration/msbuild.mdx 30 /cli/installation/ https://cli.sentry.dev/getting-started/
docs/platforms/dotnet/common/configuration/msbuild.mdx 31 /cli/configuration/#to-use-the-automatic-option https://cli.sentry.dev/configuration/#to-use-the-automatic-option
docs/platforms/dotnet/common/configuration/msbuild.mdx 67 /cli/configuration/#configuration-values https://cli.sentry.dev/configuration/#configuration-values
docs/platforms/dotnet/common/configuration/msbuild.mdx 192 /cli/releases/#commit-integration https://cli.sentry.dev/commands/release/#commit-integration
docs/platforms/dotnet/common/data-management/debug-files/file-formats/index.mdx 43 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/dotnet/common/data-management/debug-files/identifiers/index.mdx 42 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
docs/platforms/dotnet/common/data-management/debug-files/index.mdx 30 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/dotnet/common/data-management/debug-files/source-context/index.mdx 25 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/dotnet/common/data-management/debug-files/upload/index.mdx 39 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/godot/configuration/source-context.mdx 36 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/godot/configuration/stack-traces.mdx 179 /cli/ https://cli.sentry.dev/
docs/platforms/godot/configuration/stack-traces.mdx 201 /cli/installation/ https://cli.sentry.dev/getting-started/
docs/platforms/godot/configuration/stack-traces.mdx 278 /cli/ https://cli.sentry.dev/
docs/platforms/java/common/source-context/index.mdx 13 /cli/code-mappings/ https://cli.sentry.dev/commands/code-mappings/
docs/platforms/javascript/common/data-management/debug-files/file-formats/index.mdx 46 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/javascript/common/data-management/debug-files/identifiers/index.mdx 45 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
docs/platforms/javascript/common/data-management/debug-files/index.mdx 33 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/javascript/common/data-management/debug-files/source-context/index.mdx 28 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/javascript/common/data-management/debug-files/upload/index.mdx 25 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/javascript/common/sourcemaps/index.mdx 14 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/javascript/common/sourcemaps/uploading/create-react-app.mdx 61 /cli/configuration/ https://cli.sentry.dev/configuration/
docs/platforms/javascript/common/sourcemaps/uploading/ionic-capacitor.mdx 53 /cli/installation/ https://cli.sentry.dev/getting-started/
docs/platforms/javascript/common/sourcemaps/uploading/ionic-capacitor.mdx 55 /cli/configuration/ https://cli.sentry.dev/configuration/
docs/platforms/javascript/common/sourcemaps/uploading/ionic-capacitor.mdx 158 /cli/releases/ https://cli.sentry.dev/commands/release/
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx 48 /cli/configuration/ https://cli.sentry.dev/configuration/
docs/platforms/javascript/common/sourcemaps/uploading/wrangler.mdx 172 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/javascript/guides/cordova/sourcemaps/index.mdx 14 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/javascript/guides/cordova/upload-debug.mdx 11 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/javascript/guides/react-router/hydrogen.mdx 264 /cli/ https://cli.sentry.dev/
docs/platforms/javascript/guides/sveltekit/sourcemaps/index.mdx 14 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/javascript/legacy-sdk/sourcemaps.mdx 24 /cli/ https://cli.sentry.dev/
docs/platforms/kotlin/guides/compose-multiplatform/index.mdx 53 /cli/dif/#proguard-mapping-upload https://cli.sentry.dev/commands/debug-files/#proguard-mapping-upload
docs/platforms/native/common/data-management/debug-files/file-formats/index.mdx 43 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/native/common/data-management/debug-files/identifiers/index.mdx 42 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
docs/platforms/native/common/data-management/debug-files/index.mdx 18 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/native/common/data-management/debug-files/source-context/index.mdx 25 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/native/common/data-management/debug-files/upload/index.mdx 22 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/react-native/common/data-management/debug-files/file-formats/index.mdx 43 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/react-native/common/data-management/debug-files/identifiers/index.mdx 42 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
docs/platforms/react-native/common/data-management/debug-files/index.mdx 30 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/react-native/common/data-management/debug-files/source-context/index.mdx 25 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/react-native/common/data-management/debug-files/upload/index.mdx 22 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/react-native/common/sourcemaps/troubleshooting/legacy-uploading-methods.mdx 15 /cli/configuration/ https://cli.sentry.dev/configuration/
docs/platforms/react-native/common/upload-debug/index.mdx 28 /cli/ https://cli.sentry.dev/
docs/platforms/react-native/common/upload-debug/index.mdx 28 /cli/dif/#proguard-mapping-upload https://cli.sentry.dev/commands/debug-files/#proguard-mapping-upload
docs/platforms/react-native/common/upload-debug/index.mdx 28 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/rust/common/source-context/index.mdx 10 /cli/installation/ https://cli.sentry.dev/getting-started/
docs/platforms/rust/common/source-context/index.mdx 10 /cli/configuration/ https://cli.sentry.dev/configuration/
docs/platforms/unity/configuration/options/cli-options/index.mdx 8 /cli/ https://cli.sentry.dev/
docs/platforms/unity/data-management/debug-files/file-formats/index.mdx 43 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/unity/data-management/debug-files/identifiers/index.mdx 42 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
docs/platforms/unity/data-management/debug-files/index.mdx 34 /cli/releases/#upload-source-maps https://cli.sentry.dev/commands/release/#upload-source-maps
docs/platforms/unity/data-management/debug-files/source-context/index.mdx 24 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/unity/data-management/debug-files/upload/index.mdx 29 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/platforms/unity/native-support/index.mdx 121 /cli/ https://cli.sentry.dev/
docs/platforms/unity/native-support/index.mdx 154 /cli/installation/ https://cli.sentry.dev/getting-started/
docs/platforms/unreal/data-management/debug-files/file-formats/index.mdx 43 /cli/dif/ https://cli.sentry.dev/commands/debug-files/
docs/platforms/unreal/data-management/debug-files/identifiers/index.mdx 42 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
docs/platforms/unreal/data-management/debug-files/index.mdx 30 /cli/releases/#sentry-cli-sourcemaps https://cli.sentry.dev/commands/release/#sentry-cli-sourcemaps
docs/platforms/unreal/data-management/debug-files/source-context/index.mdx 25 /cli/dif/#creating-source-bundles https://cli.sentry.dev/commands/debug-files/#creating-source-bundles
docs/platforms/unreal/data-management/debug-files/upload/index.mdx 15 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
docs/product/logs/index.mdx 170 /cli/logs/ https://cli.sentry.dev/commands/log/
docs/product/monitors-and-alerts/monitors/crons/getting-started/index.mdx 38 /cli/crons/ https://cli.sentry.dev/commands/monitor/
docs/product/projects/index.mdx 22 /cli/releases/#creating-deploys https://cli.sentry.dev/commands/release/#creating-deploys
docs/product/relay/getting-started.mdx 218 /cli/installation/ https://cli.sentry.dev/getting-started/
docs/product/releases/associate-commits/index.mdx 28 /cli/configuration/#sentry-cli-working-with-projects https://cli.sentry.dev/configuration/#sentry-cli-working-with-projects
docs/product/releases/naming-releases.mdx 9 /cli/releases/ https://cli.sentry.dev/commands/release/
docs/product/releases/setup/index.mdx 73 /cli/configuration/ https://cli.sentry.dev/configuration/
docs/product/releases/setup/index.mdx 83 /cli/releases/#finalizing-releases https://cli.sentry.dev/commands/release/#finalizing-releases
docs/product/releases/setup/index.mdx 83 /cli/releases/ https://cli.sentry.dev/commands/release/
docs/product/releases/setup/release-automation/circleci/index.mdx 70 /cli/releases/ https://cli.sentry.dev/commands/release/
docs/product/releases/setup/release-automation/jenkins/index.mdx 45 /cli/releases/ https://cli.sentry.dev/commands/release/
docs/product/releases/setup/release-automation/travis-ci/index.mdx 63 /cli/releases/ https://cli.sentry.dev/commands/release/
docs/product/releases/usage/disable-auto-release-creation.mdx 13 /cli/releases/ https://cli.sentry.dev/commands/release/
docs/product/snapshots/agentic-workflow/index.mdx 82 /cli/snapshots/ https://cli.sentry.dev/commands/snapshots/
docs/product/snapshots/local-testing/index.mdx 33 /cli/snapshots/#download-baselines https://cli.sentry.dev/commands/snapshots/#download-baselines
docs/product/snapshots/local-testing/index.mdx 45 /cli/snapshots/#local-diff https://cli.sentry.dev/commands/snapshots/#local-diff
docs/product/snapshots/local-testing/index.mdx 67 /cli/snapshots/ https://cli.sentry.dev/commands/snapshots/
docs/product/snapshots/uploading-snapshots/index.mdx 24 /cli/snapshots/ https://cli.sentry.dev/commands/snapshots/
docs/product/snapshots/uploading-snapshots/index.mdx 99 /cli/snapshots/ https://cli.sentry.dev/commands/snapshots/
includes/sentry-cli-sourcemaps.mdx 7 /cli/configuration/ https://cli.sentry.dev/configuration/
includes/sentry-cli-sourcemaps.mdx 151 /cli/releases/ https://cli.sentry.dev/commands/release/
includes/size-analysis/upload-cli-android.mdx 1 /cli/ https://cli.sentry.dev/
includes/size-analysis/upload-cli-ios.mdx 1 /cli/ https://cli.sentry.dev/
platform-includes/debug-file-formats-wasm-toolchains/native.wasm.mdx 50 /cli/dif/#checking-files https://cli.sentry.dev/commands/debug-files/#checking-files
platform-includes/debug-symbols/dart-plugin/dart.flutter.mdx 140 /cli/dif/#proguard-mapping-upload https://cli.sentry.dev/commands/debug-files/#proguard-mapping-upload
platform-includes/debug-symbols/dart-plugin/dart.flutter.mdx 281 /cli/releases/ https://cli.sentry.dev/commands/release/
platform-includes/debug-symbols/manual-upload/dart.mdx 11 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
platform-includes/debug-symbols/manual-upload/dart.mdx 17 /cli/dif/#uploading-files https://cli.sentry.dev/commands/debug-files/#uploading-files
platform-includes/debug-symbols/manual-upload/dart.mdx 25 /cli/releases/#upload-source-maps https://cli.sentry.dev/commands/release/#upload-source-maps
platform-includes/debug-symbols-apple/_default.mdx 48 /cli/configuration/ https://cli.sentry.dev/configuration/
platform-includes/debug-symbols-apple/_default.mdx 94 /cli/installation/ https://cli.sentry.dev/getting-started/
platform-includes/source-context/java.mdx 6 /cli/dif/#jvm-source-bundles https://cli.sentry.dev/commands/debug-files/#jvm-source-bundles
platform-includes/source-context/java.mdx 336 /cli/dif/#jvm-source-bundles https://cli.sentry.dev/commands/debug-files/#jvm-source-bundles
platform-includes/sourcemaps/overview/javascript.remix.mdx 59 /cli/ https://cli.sentry.dev/
platform-includes/sourcemaps/upload/primer/javascript.remix.mdx 5 /cli/configuration/#configuration-values https://cli.sentry.dev/configuration/#configuration-values
platform-includes/sourcemaps/upload/primer/javascript.remix.mdx 5 /cli/configuration/ https://cli.sentry.dev/configuration/

Each redirect hop loses ~15% of SEO link equity and adds latency for users.

sentry-junior Bot and others added 2 commits December 1, 2026 21:44
…o-cli-sentry-dev

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
The /cli/ pages now redirect to cli.sentry.dev, so the redirect-chain
lint flags every content link that still points at them. Link straight
to each redirect's final destination instead.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@codeowner-assignment
codeowner-assignment Bot requested review from a team, 0xadam-brown, antonis, buenaflor, itaybre, philprime and runningcode and removed request for a team December 1, 2026 21:46
The blog moved these posts from dated paths to slug-only URLs, and the
old URLs now return 404, which fails the external link check.
@codeowner-assignment
codeowner-assignment Bot requested a review from a team December 1, 2026 21:50

// Concepts & Reference (includes CLI which is part of Concepts)
if (path[0] === 'concepts' || path[0] === 'cli') {
// Concepts & Reference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like Sentry CLI is still listed in this menu. It redirects to cli.sentry.dev, which is fine, but from reading this, it looks like the intention is to remove it from the menu, @BYK ?

{label: 'Data Management', href: '/concepts/data-management/'},
{label: 'OpenTelemetry (OTLP)', href: '/concepts/otlp/'},
{label: 'Sentry CLI', href: '/cli/'},
{label: 'Sentry CLI', href: 'https://cli.sentry.dev/'},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nevermind, I see the label still here. Just checking that we do indeed still want it listed.

Comment thread redirects.js Outdated
// Pages with a v4 equivalent map one-to-one; everything else goes to the root.
{
source: '/cli/',
destination: 'https://cli.sentry.dev/',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
destination: 'https://cli.sentry.dev/',
destination: 'https://cli.sentry.dev/https://cli.sentry.dev/migrating-from-v3/',

@sfanahata sfanahata Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking that if someone wants to directly go to the v3 CLI docs, they should probably land on the migration docs.

@sfanahata sfanahata left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BYK overall looks good. Just wondering about whether we need to remove reference to sentry-cli, and then my suggestions about redirects/certain linking updates.

sentry-junior Bot and others added 2 commits December 2, 2026 01:09
The rewritten links kept section anchors from the old /cli/ pages,
which don't exist on cli.sentry.dev. Point each at the matching v4
command or configuration section.

Co-Authored-By: Shannon Anahata <shannon.anahata@sentry.io>
Co-Authored-By: Shannon Anahata <shannon.anahata@sentry.io>
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Please update the IS YOUR CHANGE URGENT? section of the PR description:

  • Select exactly one option.
  • If you selected an urgent or other deadline, provide the date as YYYY-MM-DD.

This information helps the Docs team prioritize your review.

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are still a lot of old sentry-cli references and its commands left over. We need to replace all of these for the new CLI. We should also add a small banner to the new CLI docs for people coming from the old CLI docs redirects and point them to the migration guide.

Comment thread docs/api/permissions.mdx Outdated
<Alert level="warning" title="Note">

Be aware that if you're using `sentry-cli` to [manage your releases](/cli/releases/), you'll need a token which also has `org:read` scope.
Be aware that if you're using `sentry-cli` to [manage your releases](https://cli.sentry.dev/commands/release/), you'll need a token which also has `org:read` scope.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No more swentry-cli, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 5630e874d. Both mentions on this page now say the Sentry CLI.

via @BYK.

The plugin will automatically generate appropriate ProGuard mapping files and upload them when you run `gradle assemble{BuildVariant}`. For example, `assembleRelease`. Release is the default, but the plugin works for others as long as you've enabled ProGuard/R8. The credentials for the upload step are defined in the Gradle extension above or loaded from a `sentry.properties` file in your project.

To use Guardsquare's ProGuard or DexGuard tooling, you'll have to enable the `dexguardEnabled` flag. Learn more in the [full `sentry-cli` documentation](/cli/configuration/#configuration-values).
To use Guardsquare's ProGuard or DexGuard tooling, you'll have to enable the `dexguardEnabled` flag. Learn more in the [full `sentry-cli` documentation](https://cli.sentry.dev/configuration/#configuration-file-sentryclirc).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no sentry-cli references anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 5630e874d. The link text and the plugin-option comments now say Sentry CLI. The page shows no sentry-cli commands to rename, since the Gradle plugin runs its bundled CLI itself.

via @BYK.

Co-authored-by: Shannon Anahata <shannon.anahata@gmail.com>
sentry-junior Bot and others added 2 commits December 3, 2026 22:43
…o-cli-sentry-dev

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>

# Conflicts:
#	docs/platforms/kotlin/guides/compose-multiplatform/index.mdx
Point the /cli/ index at https://cli.sentry.dev/migrating-from-v3/ and add
from=sentry-docs to every legacy CLI docs redirect to cli.sentry.dev, so
cli.sentry.dev can show a banner to people who followed an old docs link.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
Pages that link to cli.sentry.dev now call the tool Sentry CLI instead of
the v3 binary name, and the Flutter release finalize example uses the v4
`sentry release finalize` command. Commands that SDK build integrations
run with their bundled CLI stay as they are.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
The v4 CLI's `sentry auth login` doesn't write the .sentryclirc that the
MSBuild integration's bundled CLI reads, so workstations set an org auth
token in SENTRY_AUTH_TOKEN, the same as CI.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@sentry-junior

sentry-junior Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@BYK Done on this PR's pages in 5630e874d (65 references removed); what's kept and why is in the PR body. The .NET MSBuild page no longer tells workstation users to run sentry-cli login: they set an organization auth token in SENTRY_AUTH_TOKEN, the same as CI (2eeacf134). The v4 command rewrites, plus the remaining Unity and size analysis renames, are in #20981. For the banner: the /cli/* redirects now add ?from=sentry-docs (2f28f2408), and getsentry/toolkit#2869 is merged and goes live on cli.sentry.dev with the 4.0.0 release.

via @BYK.

@BYK
BYK merged commit 5a448b6 into master Dec 4, 2026
37 checks passed
@BYK
BYK deleted the docs/redirect-cli-to-cli-sentry-dev branch December 4, 2026 06:01
BYK added a commit that referenced this pull request Dec 4, 2026
> [!IMPORTANT]
> **Merge at the Sentry CLI v4 launch, after
#20979.** Before launch these commands don't match
the CLI that users install. This PR is stacked on #20979 (the `/cli/*` →
cli.sentry.dev redirect): the lines both PRs edit keep this PR's wording
and #20979's cli.sentry.dev links. Merge #20979 first, then make sure
this PR's base is `master` before merging it. GitHub switches it
automatically only if the #20979 branch gets deleted.

## DESCRIBE YOUR PR

This PR rewrites the standalone `sentry-cli` commands on platform and
product pages for Sentry CLI v4 (npm `sentry`). It follows the [v3 → v4
migration guide](https://cli.sentry.dev/migrating-from-v3/). It's part
of the v4 launch tracked in getsentry/toolkit#1965.

It covers two groups of pages:

- **About 20 pages that break under v4** because they use moved or
dropped commands and flags.
- **About 60 pages that only need the rename** from `sentry-cli` to
`sentry`, or from "sentry-cli" to "the Sentry CLI" in prose.

| v3 | v4 |
|---|---|
| `sentry-cli releases new V` | `sentry release create V` (`-p a,b`
comma-separated, not repeated) |
| `sentry-cli releases
finalize/set-commits/propose-version/archive/restore` | `sentry release
…` |
| `sentry-cli sourcemaps inject/upload` | `sentry sourcemap
inject/upload` |
| `sentry-cli login` | `sentry auth login` |
| `sentry-cli send-event` | `sentry event send` |
| `sentry-cli deploys new -e ENV` | `sentry release deploy $VERSION ENV`
|
| `sentry-cli releases --org O deploys V new -e E` | `sentry release
deploy O/V E` |
| `sentry-cli --auth-token T …` | `SENTRY_AUTH_TOKEN=T sentry …` |
| `debug-files upload -o O -p P` | `debug-files upload --org O --project
P` |
| `npm install @sentry/cli`, `brew install getsentry/tools/sentry-cli`,
`curl sentry.io/get-cli` | `npm install sentry`, `brew install
getsentry/tools/sentry`, `npm install -g sentry` (the migration guide's
CI recommendation) |

### Intentionally left on `sentry-cli`

These pages run the CLI that ships inside an SDK or build plugin, not a
CLI the user installs:

- React Native: before-v5, troubleshooting, ram-bundles (v4 dropped
`--bundle`/`--bundle-sourcemap`), hermes, jsc, codepush, manual-setup,
legacy uploading methods.
- Expo `gradle.mdx`, Android `configuration/gradle.mdx`, Java `maven`,
Apple `dsym` (Fastlane), and the Flutter plugin include.
- .NET `msbuild.mdx`: its `login` feeds the bundled v3 CLI, and v4 never
writes `.sentryclirc`.
- The legacy JS source maps includes.
- Gradle, Maven, and Unity text that describes what the bundled CLI
does.
- Version notes such as "sentry-cli >= 3.5.0".

### Reviewer notes

- The Unity native support and file formats pages and the size analysis
upload steps now call the bundled or installed tool "the Sentry CLI"
instead of `sentry-cli`.
- `--force-foreground` has no v4 equivalent. It's removed from the Xcode
build-phase scripts, along with the alert that described it.
- In `source-context/java.mdx`, `SENTRY_PROPERTIES` / `.properties` now
reads `.sentryclirc` only, because v4 doesn't read `SENTRY_PROPERTIES`.
- The CircleCI, Jenkins, and Travis examples now install with `npm
install -g sentry`, so those jobs need Node.
- The Godot install block uses the v4 install methods (install script,
Homebrew, npm). Scoop and pacman have no v4 package.
- The Unity "Manual Upload Using the Sentry CLI" heading has a new
anchor. The one inbound link to it is updated.

Each rewritten command was parsed by the published v4 CLI with no
unknown-flag, alias, or command errors.

### Screenshots

CircleCI release automation:

![CircleCI release
automation](https://junior-prod.sentry.dev/public/artifacts/9bfafd0d-af81-40a2-9db2-1228c46b7673.png)

Apple dSYM upload ("Sentry CLI" section, anchor is still `#sentry-cli`):

![Apple dSYM
upload](https://junior-prod.sentry.dev/public/artifacts/0971905e-9c76-45c5-9fe4-d1f91d404d39.png)

## IS YOUR CHANGE URGENT?

- [x] Other deadline: merge at the Sentry CLI v4 launch
- [ ] No deadline: Not urgent, can wait up to 1 week+

## PRE-MERGE CHECKLIST

- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)

<!-- junior-request-attribution:start -->
via @BYK, **shannon.anahata**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A11aa7117825ac7a642c76f36e8b464ae -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A11aa7117825ac7a642c76f36e8b464ae)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A11aa7117825ac7a642c76f36e8b464ae/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <126780+BYK@users.noreply.github.com>
Co-authored-by: Shannon Anahata <shannon.anahata@sentry.io>
github-actions Bot pushed a commit to Fields-Education/sentry-mcp that referenced this pull request Dec 4, 2026
….io (getsentry#2869)

The old docs.sentry.io `/cli/*` pages are moving to cli.sentry.dev, and
getsentry/sentry-docs#20979 adds `?from=sentry-docs` to every redirect
destination. People who land here that way get a banner above the page
content:

> Sentry CLI docs have moved here. Coming from `sentry-cli` v3? Read the
[migration guide](https://cli.sentry.dev/migrating-from-v3/). Looking
for v3? Its ghost haunts
[getsentry/sentry-cli](https://github.com/getsentry/sentry-cli).

- `RedirectBanner.astro` holds the banner in a `<template>` and an
inline script. When the URL has `from=sentry-docs`, the script inserts
the banner right before `<main>` and removes the param from the address
bar with `history.replaceState`, keeping other params and the hash.
Nothing is stored or tracked.
- It mounts in the existing `PageFrame` override, next to the analytics
components. Without the param, pages render as they do today.
- Starlight's built-in `banner` frontmatter is static per page, so it
can't depend on the query param. Putting anything inside `<main>` before
the content also breaks the theme's `main > .content-panel:first-child`
spacing, which is why the banner goes above `<main>` instead.
- The banner reuses the layout of Starlight's banner in the site's brand
purple. The migration guide link respects the PR-preview base path.

## Screenshots

`/getting-started/?from=sentry-docs` (address bar ends up as
`/getting-started/`):
![getting started with
param](https://junior-prod.sentry.dev/public/artifacts/3af0f261-a751-4a52-84ec-ccf1b2062d2a.png)

`/?from=sentry-docs`:
![landing page with
param](https://junior-prod.sentry.dev/public/artifacts/1a1b13f4-c828-4c69-8427-02a535509d83.png)

`/getting-started/` without the param:
![getting started without
param](https://junior-prod.sentry.dev/public/artifacts/2e691fff-cfca-4d28-8d12-7b392fd27cf2.png)

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A51eb7d4c0b1017352f5259458085818a -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A51eb7d4c0b1017352f5259458085818a)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A51eb7d4c0b1017352f5259458085818a/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <126780+BYK@users.noreply.github.com>
BYK added a commit that referenced this pull request Dec 4, 2026
## DESCRIBE YOUR PR

This follows #20979 and
#20981, which are already in `master`. It moves the
remaining pages to Sentry CLI v4 (npm `sentry`), following the [v3 → v4
migration guide](https://cli.sentry.dev/migrating-from-v3/).

- **Commands users run themselves** now use v4: `sentry-cli sourcemaps
upload` → [`sentry sourcemap
upload`](https://cli.sentry.dev/commands/sourcemap/#sentry-sourcemap-upload-directory)
on the Next.js, SvelteKit, Nitro, Nuxt, SolidStart and TanStack Start
pages. The manual `.so` upload on the Android NDK page points to `sentry
debug-files upload`, and the manual mapping upload on the Expo Gradle
page to `sentry proguard upload`.
- **Prose** says "the Sentry CLI" instead of `sentry-cli`. General
mentions link the getting-started page, and command mentions link the
command page.
- **Troubleshooting**: the JS source maps page says that v4 has no
`--decompress` flag. The debug ID requirement lists v4, or 2.17.0+ with
the older command names.
- **Pinned to v3**: the Expo and CodePush manual uploads now run `npx
@sentry/cli@3 sourcemaps upload`. They use v3-only flags, and once
`@sentry/cli` 4.0.0 is `latest`, plain `npx @sentry/cli` would resolve
to v4 and fail.
- **Cosmetic**: the Unity screenshot
`sentry-cli-option-configuration.png` is now
`cli-options-configuration.png`, and the `redirects.js` comment no
longer says `sentry-cli`. The `/ai/sentry-cli/` redirect source stays,
because people have bookmarked it. The develop-docs AI tools table links
cli.sentry.dev directly instead of that redirect.

Every cli.sentry.dev link and `#fragment` in the repo resolves against
the v4 docs built from getsentry/toolkit `main`.

### Intentionally left on `sentry-cli`

These lines describe a real v3 artifact, so they keep the v3 name, path
or command:

| Where | Why |
|---|---|
| React Native and Expo `node_modules/@sentry/cli/bin/sentry-cli …`,
`npx @sentry/cli@3 sourcemaps upload …`, `SENTRY_CLI_EXECUTABLE` paths,
Xcode build phase scripts | `@sentry/react-native` bundles `@sentry/cli`
3.8.2. These commands use v3-only flags (`--bundle`,
`--bundle-sourcemap`, `--debug-id-reference`, several paths). |
| Legacy JS source maps includes (`legacy-uploading-methods`,
`legacy-troubleshooting`) | They document release-artifact uploads for
Sentry CLI 2.16.1 and older. |
| Maven source context: `/path/to/sentry-cli` and the
getsentry/sentry-cli releases links | The Maven plugin runs a bundled v3
binary (3.8.2). These lines show how to point it at your own binary. |
| Flutter plugin `sentry_cli_cdn_url` default
`https://downloads.sentry-cdn.com/sentry-cli` | This is the plugin's
real default URL. |
| getsentry/sentry-cli release links (3.0.0, 2.10.0, 2.0.0, 1.51.1) and
the `@sentry/cli` 1.51.1 note | Version notes about v3 releases. |
| develop-docs: `sentry-cli` in the API deprecation checklist, and the
getsentry/sentry-cli `AGENTS.md` example | These name the repository.
The checklist now lists `toolkit` (v4) too. |
| `sentry-cli-execution-failure` page path, `sentry-cli-sourcemaps.mdx`
include name, `#…-with-the-sentry-cli` heading anchors | URLs and file
names. The anchors come from "…with the Sentry CLI" headings. |
| `public/_platforms/*.json` | Frozen legacy onboarding snapshots. |

## IS YOUR CHANGE URGENT?

- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+

## PRE-MERGE CHECKLIST

- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3Acaf5a8738f7d0345b1020fd48f2a7dd4 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3Acaf5a8738f7d0345b1020fd48f2a7dd4)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Acaf5a8738f7d0345b1020fd48f2a7dd4/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <126780+BYK@users.noreply.github.com>

This branch was successfully deployed

2 active (1 outdated) deployments
Preview – sentry-docs — 2eeacf13 Deployed Dec 4, 2026 by vercel[bot]
Preview – develop-docs — 2f28f240 Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Needs Triage The PR description is missing valid priority information

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants