Skip to content
wp2next, home
Skip to the page

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.

Your AI tool

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

How to type a command

The command is the same everywhere; only the prefix changes with your and how you installed wp2next. These pages write wp2next <command>; type it the way your tool expects:

For Claude desktop
Text
/wp2next:doctor
# Installed with npx skills, a git clone or a copied folder instead of the plugin:
/wp2next 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 is also there as /wp2next:wp2next <command>. Don't rely on plain /wp2next with a plugin install.
  • In Codex you can also pick wp2next from /skills.
  • Plain language works in every tool: "run the wp2next doctor", "wp2next the about page", "move mysite.local to Next.js".
  • wp2next on its own, or followed by a site (a *.local host, a , a Local folder), runs migrate. Anything it doesn't recognize runs help.

Setup per tool: AI environments.

All commands

"Changes code" says what the command may edit. Anything outside your computer (an account, a , a GitHub issue, DNS) always waits for your yes, one action at a time.

Set up

CommandWhat it doesChanges code
initSaves your default answers (accounts, plans, secret store, tracking, mode), offers companion skills, then runs doctorNo (writes your user config)
doctorChecks tools, versions, logins, MCP servers, companion skills and the wp2next install, and tells you how to fix what's missingNo

Build the site

CommandWhat it doesChanges code
migrateThe whole move from WordPress to Next.js + Sanity on Vercel, in 12 checkpointed phasesYes (a new project folder)
statusWhich phase a migration is in, the next checkpoint, blockers; optionally a one-page HTML dashboardNo (--dashboard writes one file)
trackingRebuilds the analytics checklist (and the Google Tag Manager import file) from wp2next.jsondocs/analytics/ and wp2next.json only
seoSearch checks: WordPress vs Next parity (a launch gate), audit, AI-search readiness, approved fixesOnly seo fix
contentContent audit, voice guide, rewrites, alt text, meta and FAQ drafts, all as Sanity draftsSanity drafts and docs/content/ only
compliancePrivacy, consent, accessibility and security gap scan with a written report. Not legal adviceNo
handoffTransfers the site's accounts to the client and writes HANDOFF.mdHANDOFF.md and wp2next.json only

Design and quality

CommandWhat it doesChanges code
critiqueDesign and UX review (impeccable) as a side process, with a reportNo
auditAccessibility, performance and responsive audit (impeccable) as a side process, with a reportNo
polishFinal design fixes on a separate branch; you review the diffYes, on a branch
faceliftA new visual design that keeps content, URLs, SEO, forms and trackingYes, on a branch
optimizeCompanion reviews (performance, accessibility, SEO), site structure, redirects and structured content, with Lighthouse before and afterYes, on a branch; gated on parity sign-off

Keep wp2next up to date

CommandWhat it doesChanges code
updateUpdates wp2next itself, the way you installed it, and shows what changedNo (replaces the skill's files after your yes)
upgradeBrings a site built with an older wp2next up to this version, on a branch, with a parity re-checkYes, on a branch
changelogShows release notes and migration notesNo
uninstallRemoves the wp2next install; asks separately about your saved settings; never touches sitesNo (removes the skill after your yes)

Give back

CommandWhat it doesChanges code
reportCounts a finished migration on the project's public counter. Opt-in, anonymous by default, sent only after your yesNo (records your answer in wp2next.json)
feedbackDrafts a GitHub issue (bug, idea, lesson) with no private details; posts only after your yesNo
contributeTurns what you learned on a site into a shareable playbook and, if you agree, a pull requestNo (works in a separate copy of wp2next)
helpLists the commands, how to call them in your tool, and where your settings liveNo

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 tab in Codex and Cursor, or inline when neither is possible. Each page says how.