From 8c01e94d45e9d6ffe6b2246b98acdc47c78cee0e Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 5 Nov 2026 10:52:44 +0000 Subject: [PATCH] docs(cli): Point the v3 migration guide at the published codemod `@getsentry/cli3to4` is now on the Codemod registry, so lead with `npx codemod@latest @getsentry/cli3to4` and drop the clone-and-run-from-source workaround. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com> --- .../src/content/docs/migrating-from-v3.md | 24 ++++--------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/apps/cli-docs/src/content/docs/migrating-from-v3.md b/apps/cli-docs/src/content/docs/migrating-from-v3.md index b8e3c8e09..83ff0121a 100644 --- a/apps/cli-docs/src/content/docs/migrating-from-v3.md +++ b/apps/cli-docs/src/content/docs/migrating-from-v3.md @@ -478,30 +478,16 @@ To automate the mechanical parts of this migration, run the constructor, and method chain, and inserts `// TODO(sentry-v4): …` comments where option shapes changed and need a manual check). -For now, run it from the toolkit repo's source — clone the repo, then point the -Codemod runner at the transform and your project directory: - -```bash -git clone --depth 1 https://github.com/getsentry/toolkit /tmp/sentry-toolkit-src - -# From your project root (-t . targets the current directory) -npx codemod@latest jssg run --language typescript \ - /tmp/sentry-toolkit-src/packages/codemod-cli3to4/scripts/codemod.ts -t . -``` - -:::note -Once the codemod is published to the [Codemod registry](https://codemod.com), the -shorter form below will work — until then, use the run-from-source command above: +It's published to the [Codemod registry](https://codemod.com) as +`@getsentry/cli3to4`: ```bash npx codemod@latest @getsentry/cli3to4 ``` -::: -It rewrites `.js`/`.ts` files in place (the registry form also covers -`.jsx`/`.tsx`). Review the diff afterward — argument -shapes differ (especially for `uploadSourceMaps` and `newDeploy`), so the codemod -flags those rather than guessing. See +It rewrites `.js`/`.ts`/`.jsx`/`.tsx` files in place. Review the diff +afterward — argument shapes differ (especially for `uploadSourceMaps` and +`newDeploy`), so the codemod flags those rather than guessing. See [`packages/codemod-cli3to4`](https://github.com/getsentry/toolkit/tree/main/packages/codemod-cli3to4) for the source and test fixtures.