Skip to content
wp2next, home
Skip to the page

wp2next doctor

Checks that your computer can run a migration and tells you exactly how to fix anything that's missing.

Your AI tool

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

Synopsiswp2next doctor [<local-site-slug>] [--fix] (Claude desktop and Claude Code plugin: /wp2next:doctor; Codex: $wp2next doctor; Cursor: /wp2next doctor)
Changes codeNo
Touches outside servicesNo. It only reads login status; logins are yours to run. With --fix it offers each install one at a time and asks before each
ReadsYour user config, installed tools and their versions, login status (account names only), your secret store, Local, browser and Lighthouse tooling, MCP servers, companion skills, every wp2next copy on the machine; inside a project also its Node/pnpm pins, form keys (names only) and internal routes
WritesNothing. With --fix, only the installs you approve

What it does

It runs every check, never stops at the first problem, and prints one table: FAIL rows first (these block migrate), then WARN (works, but fix soon), then OK. Each row has what it found, the fix, and a link to the guide that explains it. It ends with "Ready for wp2next migrate" or "Fix the FAIL rows first".

What it checks:

  • Tools: Node.js 24, (11.10.0 recommended, the version new sites pin), Python 3.9+, git, GitHub CLI, Vercel CLI, Sanity CLI, curl, and wp2next's own file helpers (fsutil.py, so rsync is not needed).
  • Logins: GitHub (and that you can reach the organization in your config), Vercel (and your team), Sanity. It prints the account name, never a token.
  • : that the backend in your config is installed and signed in.
  • : the Local app and your sites folder. doctor <site> also checks that site is running and that its database is reachable.
  • Browser, and compliance tooling, SEO and content scripts, optional design tooling (impeccable), MCP servers and companion skills.
  • wp2next itself: installed version vs the newest release, whether two copies are installed (they can load different versions), and whether the install method matches your config. No network is a WARN ("couldn't check for updates"), not a FAIL.
  • Inside a project: .nvmrc is 24, the Node and pnpm pins, a single lockfile, form destination keys present (names only), and whether the project was built by an older wp2next (then it suggests upgrade).
  • Platform: macOS, native Windows and Linux. On Windows it also checks for and the execution policy, winget, the Python launcher (py), Git for Windows, Local's Windows install, long-path support, and warns on Windows 10 that Playwright (screenshots and parity) isn't supported there. Setup and fixes: Windows.

Arguments and options

ArgumentEffect
(none)Machine checks
<local-site-slug>Also checks that Local site: running, and its database reachable
--fixAfter the report, offers each install fix one at a time, each with its own yes, and re-runs that check

Examples

For Claude desktop
Text
/wp2next:doctor
  • wp2next doctor acme: also check that the Local site acme (https://acme.local) is up.
  • wp2next doctor --fix: go through the fixes one by one.

A typical FAIL row:

StatusCheckFoundFix
FAILNode.js18.19.0Install Node 24 LTS (fnm install 24)