Commands
wp2next has 22 sub-commands. Each one has its own page with the exact syntax, what it changes, what it asks you before doing, and examples.
How to type a command
The command is the same everywhere; only the prefix changes with your AI tool and how you installed
wp2next. These pages write wp2next <command>; type it the way your tool expects:
/wp2next:doctor
# Installed with npx skills, a git clone or a copied folder instead of the plugin:
/wp2next doctor/wp2next:doctor
# Installed with npx skills, a git clone or a copied folder instead of the plugin:
/wp2next doctor$wp2next doctor/wp2next doctorwp2next doctor- The plugin (in the Claude desktop app and Claude Code) gives every command its own entry: type
/wp2next:and pick from the list. In the desktop app you can also click + next to the message box and choose Slash commands. The main skill is also there as/wp2next:wp2next <command>. Don't rely on plain/wp2nextwith a plugin install. - In Codex you can also pick wp2next from
/skills. - Plain language works in every tool: "run the wp2next doctor", "wp2next facelift the about page", "move mysite.local to Next.js".
wp2nexton its own, or followed by a site (a*.localhost, a domain, a Local folder), runsmigrate. Anything it doesn't recognize runshelp.
Setup per tool: AI environments.
All commands
"Changes code" says what the command may edit. Anything outside your computer (an account, a deployment, a GitHub issue, DNS) always waits for your yes, one action at a time.
Set up
| Command | What it does | Changes code |
|---|---|---|
init | Saves your default answers (accounts, plans, secret store, tracking, mode), offers companion skills, then runs doctor | No (writes your user config) |
doctor | Checks tools, versions, logins, MCP servers, companion skills and the wp2next install, and tells you how to fix what's missing | No |
Build the site
| Command | What it does | Changes code |
|---|---|---|
migrate | The whole move from WordPress to Next.js + Sanity on Vercel, in 12 checkpointed phases | Yes (a new project folder) |
status | Which phase a migration is in, the next checkpoint, blockers; optionally a one-page HTML dashboard | No (--dashboard writes one file) |
tracking | Rebuilds the analytics checklist (and the Google Tag Manager import file) from wp2next.json | docs/analytics/ and wp2next.json only |
seo | Search checks: WordPress vs Next parity (a launch gate), audit, AI-search readiness, approved fixes | Only seo fix |
content | Content audit, voice guide, rewrites, alt text, meta and FAQ drafts, all as Sanity drafts | Sanity drafts and docs/content/ only |
compliance | Privacy, consent, accessibility and security gap scan with a written report. Not legal advice | No |
handoff | Transfers the site's accounts to the client and writes HANDOFF.md | HANDOFF.md and wp2next.json only |
Design and quality
| Command | What it does | Changes code |
|---|---|---|
critique | Design and UX review (impeccable) as a side process, with a report | No |
audit | Accessibility, performance and responsive audit (impeccable) as a side process, with a report | No |
polish | Final design fixes on a separate branch; you review the diff | Yes, on a branch |
facelift | A new visual design that keeps content, URLs, SEO, forms and tracking | Yes, on a branch |
optimize | Companion reviews (performance, accessibility, SEO), site structure, redirects and structured content, with Lighthouse before and after | Yes, on a branch; gated on parity sign-off |
Keep wp2next up to date
| Command | What it does | Changes code |
|---|---|---|
update | Updates wp2next itself, the way you installed it, and shows what changed | No (replaces the skill's files after your yes) |
upgrade | Brings a site built with an older wp2next up to this version, on a branch, with a parity re-check | Yes, on a branch |
changelog | Shows release notes and migration notes | No |
uninstall | Removes the wp2next install; asks separately about your saved settings; never touches sites | No (removes the skill after your yes) |
Give back
| Command | What it does | Changes code |
|---|---|---|
report | Counts a finished migration on the project's public counter. Opt-in, anonymous by default, sent only after your yes | No (records your answer in wp2next.json) |
feedback | Drafts a GitHub issue (bug, idea, lesson) with no private details; posts only after your yes | No |
contribute | Turns what you learned on a site into a shareable playbook and, if you agree, a pull request | No (works in a separate copy of wp2next) |
help | Lists the commands, how to call them in your tool, and where your settings live | No |
Commands that run on the side
critique, audit, polish, optimize, seo audit and content audit run as side processes so
the main work doesn't stop: a background subagent in Claude Code, a second session or terminal tab in
Codex and Cursor, or inline when neither is possible. Each page says how.
Related
- Configuration · Environment variables · Scripts
- Concepts: phases, checkpoints, modes and the parity gate
- Agent instructions per command:
skills/wp2next/references/commands/ (external site)