Skip to content
wp2next, home
Skip to the page

wp2next upgrade

Brings a site built with an older wp2next up to the installed version, on a branch, and proves nothing visible changed.

Your AI tool

Commands are shown for Claude desktop, the recommended tool. Pick another if you use a different one; this browser remembers.

Synopsiswp2next upgrade [<project path>] [--to <version>] [--dry-run] (Claude desktop and Claude Code plugin: /wp2next:upgrade; Codex: $wp2next upgrade; Cursor: /wp2next upgrade)
Changes codeYes, on branch wp2next/upgrade-<version>. Production isn't touched until you merge, and you do the merging
Touches outside servicesIt asks before pulling, before pushing the branch (which makes Vercel build a preview), before sending a test form (a real submission) and before opening a pull request. A rollback after merging is also asked first
Readswp2next.json (wp2next.version), the project's code, the release notes and their migration notes, the installed skill's reference files
WritesCode and dependency changes on the branch, a plan and report in .wp2next/upgrade/<version>/, wp2next.version and lighthouse.lastRun in wp2next.json, the project CLAUDE.md

What it does

  1. Works out the versions: from the project's wp2next.version to the installed version (or --to). A project from wp2next 1.x has no wp2next.json; upgrade creates one from what's in the . If the skill is older than the project, it tells you to run update first.
  2. Writes a plan from every release's migration notes in between: config-key changes, changed reference files, the Node 24 + toolchain move, the Next.js 15 → 16 checklist when the jump crosses it, and how long it usually takes (an hour or two for a typical marketing site, longer if the screenshot diff finds problems). It waits for your yes.
  3. Checks first: a clean tree on the default branch, and lint, typecheck and build passing before the upgrade, so later failures belong to the upgrade. If the old build fails, it stops; fixing it is a separate job.
  4. Baseline: refreshes the measuring scripts, then captures screenshots, routes, head tags and a run of the current production build.
  5. Upgrades: toolchain, codemods, the Next.js 16 checklist, layout changes, config migrations, and the reference files the project copied, which it diffs and asks about file by file.
  6. Re-verifies: lint, typecheck, build, then the same captures; screenshots, routes and head tags must match, and Lighthouse is compared before and after.
  7. Preview and report: pushes the branch after your yes, checks the Vercel preview (Node 24.x, pnpm 11.10.0), writes a report, records the new version, and offers a .

Rollback: before merging, delete the branch; production never changed. After merging, Vercel's instant rollback plus reverting the merge .

After the upgrade it offers optimize if was signed off.

Arguments and options

ArgumentEffect
(none)Upgrade the project in the current folder to the installed version
<project path>The project to upgrade
--to <version>Upgrade to a specific version instead of the installed one
--dry-runShow the plan only; change nothing

Examples

For Claude desktop
Text
/wp2next:upgrade --dry-run
  • wp2next upgrade: run the upgrade after reviewing the plan.
  • wp2next upgrade --to 2.0.0: stop at a specific release.