Skip to content

docs(cli): Finish the Sentry CLI v4 content migration - #21100

Merged
BYK merged 3 commits into
masterfrom
docs/cli-v4-content-migration
Dec 4, 2026
Merged

BYK merged 3 commits into
masterfrom
docs/cli-v4-content-migration

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Commands users run themselves now use v4: sentry-cli sourcemaps upload → sentry sourcemap upload 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, and these commands use v3 syntax (--bundle, --bundle-sourcemap, --debug-id-reference, several paths). The Hermes and JSC uploads could move to sentry sourcemap upload --ext .bundle <dir>, and CodePush would also need the map next to the bundle. That's left for a follow-up.
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
  • 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]

Rewrite the remaining manual sentry-cli commands on platform pages to
their v4 commands, and call the tool "the Sentry CLI" in prose.
Text that documents the CLI bundled in an SDK or build plugin, legacy
uploads for old versions, and v3 version notes keeps its v3 paths and
commands.

Rename the Unity CLI options screenshot to a neutral name.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@sentry-junior
sentry-junior Bot requested a review from BYK December 4, 2026 06:16
@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
develop-docs Ready Ready Preview Dec 4, 2026 7:24am UTC
sentry-docs Ready Ready Preview Dec 4, 2026 7:24am UTC

Request Review

The Expo and CodePush manual uploads use v3-only flags. Once @sentry/cli
4.0.0 is latest, npx @sentry/cli would resolve to v4 and fail.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@codeowner-assignment
codeowner-assignment Bot requested review from a team December 4, 2026 06:28
Similar to the [programmatic configuration](/platforms/unity/configuration/options/programmatic-configuration/) of the SDK itself, the debug symbol upload with Sentry CLI also supports programmatic configuration. Create a class that inherits from `SentryCliOptionsConfiguration` and assign it to the **CLI Config Script** field on the **Debug Symbols** tab.

![Options Configuration](./img/sentry-cli-option-configuration.png)
![Options Configuration](./img/cli-options-configuration.png)

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.

Do we need a new image here?

@BYK
BYK enabled auto-merge (squash) December 4, 2026 06:29
…-migration

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@BYK
BYK merged commit 8a77226 into master Dec 4, 2026
35 checks passed
@BYK
BYK deleted the docs/cli-v4-content-migration branch December 4, 2026 07:25

This branch was successfully deployed

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

Labels

Priority: Normal Docs review has no urgent deadline sdk-develop-docs PRs touching develop-docs/sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant