wp2next doctor
Checks that your computer can run a migration and tells you exactly how to fix anything that's missing.
| Synopsis | wp2next doctor [<local-site-slug>] [--fix] (Claude desktop and Claude Code plugin: /wp2next:doctor; Codex: $wp2next doctor; Cursor: /wp2next doctor) |
|---|---|
| Changes code | No |
| Touches outside services | No. It only reads login status; logins are yours to run. With --fix it offers each install one at a time and asks before each |
| Reads | Your 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 |
| Writes | Nothing. 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, pnpm 11 (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, sorsyncis 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.
- Secret store: that the backend in your config is installed and signed in.
- Local: the Local app and your sites folder.
doctor <site>also checks that site is running and that its database is reachable. - Browser, Lighthouse 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:
.nvmrcis24, 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 suggestsupgrade). - Platform: macOS, native Windows and Linux. On Windows it also checks for PowerShell 7 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
| Argument | Effect |
|---|---|
| (none) | Machine checks |
<local-site-slug> | Also checks that Local site: running, and its database reachable |
--fix | After the report, offers each install fix one at a time, each with its own yes, and re-runs that check |
Examples
For Claude desktop
/wp2next:doctor/wp2next:doctor$wp2next doctor/wp2next doctorwp2next doctor acme: also check that the Local siteacme(https://acme.local) is up.wp2next doctor --fix: go through the fixes one by one.
A typical FAIL row:
| Status | Check | Found | Fix |
|---|---|---|---|
| FAIL | Node.js | 18.19.0 | Install Node 24 LTS (fnm install 24) |
Related
initrunsdoctorat the end ·updatefor an outdated wp2next ·uninstallfor duplicate copies- Step 2: install wp2next
- Guides: MCP servers and CLIs · Secrets · Getting WordPress into Local · Troubleshooting
- Agent instructions:
references/commands/doctor.md (external site)