Skip to content
wp2next, home
Skip to the page

Quick start

The short path for people who run migrations: freelancers, agencies and developers. It assumes you know your way around a , Git and an AI coding agent. Moving your own site for the first time? Use the step-by-step track instead: Move my site.

Order: toolchain → install → init → doctor → migrate → launch gates → handoff. How the pieces fit together is in Concepts.

Your AI tool

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

Your computer

Pick your computer's system. Steps that differ switch to it, and this browser remembers.

Before you start

  • An with Agent Skills support: the Claude desktop app (Code tab; the default these docs assume), Claude Code in a terminal, Codex or Cursor are the tested ones. Plans and install steps: AI environments.
  • Accounts: GitHub, Vercel, Sanity, and for form email (plus HubSpot or monday.com if leads go to a CRM). Decide who owns them first: Accounts and plans. A business site needs Vercel Pro; Hobby is for personal, non-commercial use only (checked 2026-12, vercel.com, pricing⁠ (external site)).
  • , logged in: gh auth login, vercel login, npx sanity@latest login (check with gh auth status, vercel whoami, npx sanity@latest projects list). MCP servers are optional: MCP servers and command-line tools.
  • A : the password manager you already use, or Vercel env / .env as a fallback: Secrets: where wp2next keeps passwords and API keys.
  • The WordPress site in : Getting a WordPress site into Local. No hosting access? The same page covers the REST export fallback.
  • Google Chrome, for runs on the old and new site.

wp2next runs on macOS, Linux and native Windows ( in Windows Terminal, Local on Windows). WSL2 is an advanced option for teams who want Windows to behave like their Macs; it needs mirrored networking to reach Local's database. Both paths: Windows.

Codex users. Codex's default workspace sandbox blocks much of this page: gh, vercel, npx sanity, pnpm install, fetching *.local sites and -store CLIs all need the network, which is off by default, and init writes outside the workspace (~/.config/wp2next/). Start Codex in your projects folder (e.g. ~/Sites), expect an approval prompt for ~/.config/wp2next/, and either approve the network prompts or set network_access = true under [sandbox_workspace_write] in ~/.codex/config.toml. Don't use full access. Details: AI environments.

Client-owned sites

client-owned is the recommended ownership, but your holds your github.owner, vercel.team and sanity.org. For each client-owned site:

  • Before 7, the client creates a GitHub org, a Vercel Pro team and a Sanity org, and invites you. If leads go to HubSpot, their super admin creates the service key in their portal.
  • In the migrate interview, answer Change for this site at the Accounts question (batch M3) and enter the client's GitHub org, Vercel team and Sanity org ID. They're saved in that site's wp2next.json and override your defaults. Answering "Yes, use them" would create the Sanity project (phase 7) and the GitHub and Vercel project (phase 11) in your accounts.
  • At the end, handoff is short: it checks the client is admin everywhere, rotates the keys you created into their store and removes your access; the sanity, github, vercel and vercel-github-app steps are n/a.

Details: Accounts and plans, Handing a site over to the client.

Using HubSpot

  • In init, pick Email via Resend and for forms; it's saved as ["resend","hubspot"] (safety net first).
  • Before migrate, decide with the client how HubSpot records leads (batch M5b has no recommended answer): a form submission (marketing contact with page-view attribution, with or without an unticked opt-in box) or a contact only (non-marketing contact, no page history). Form GUIDs are collected in phase 7.
  • Have the client's HubSpot super admin create a service key (Development → Keys → Service keys, scopes forms and crm.objects.contacts.write) for phase 7. It's stored as HUBSPOT_SK; legacy private apps can no longer be created.
  • Load HubSpot's tracking code (analytics hubspot, or the hubspot tag), or init and config.py validate warn that form-mode leads arrive without visit attribution.
  • Set FORMS_DESTINATIONS=resend on Preview so test submissions stay out of the CRM.

Details: Forms, email and CRM, Environment variables.

Toolchain

Every site wp2next builds runs on Node 24 LTS and .10.0, plus Python 3 (3.9+, for the skill's helper scripts) and Git.

Terminal
xcode-select --install                   # Git and Python 3
brew install fnm                         # Node version manager; reads .nvmrc
echo 'eval "$(fnm env --use-on-cd --shell zsh)"' >> ~/.zshrc && source ~/.zshrc
fnm install 24 && fnm default 24
npm install -g pnpm@11.10.0              # the exact version projects pin

node --version; pnpm --version; python3 --version; git --version

The runs its Python helpers with the first of python3, python and py -3 that actually runs, so the Windows python3 Store stub doesn't get in the way.

Notes for people who already have a setup:

  • Projects pin the toolchain: .nvmrc is 24; the root package.json and apps/web/package.json carry "engines": {"node": ">=24 <25"}; the root package.json has "packageManager": "pnpm@11.10.0". Vercel reads both. Odd Node lines (25, 27…) are not supported.
  • Install pnpm with npm, not Corepack: Node stops including Corepack from version 25. A global pnpm belongs to the Node it was installed under, so reinstall it after adding a new Node version.
  • nvm works too (nvm install 24 && nvm alias default 24). Avoid 's Node: brew install node may not be 24, and brew install node@24 is keg-only (not on your PATH). The nodejs.org installer works but global installs can fail with EACCES; fix that with a version manager, not sudo.
  • Inside a project, run one-off tools with pnpm dlx, not npx. Outside a project (for example npx skills add below), npx is fine.

Install

Pick one route. Two installs can load two versions; doctor warns when it finds more than one.

For Claude desktop

Customize → Plugins → Add → Add marketplace, enter MTRCio/wp2next, install wp2next, then start a new Code session (or /reload-plugins). If the commands don't appear, install the plugin once with the CLI from the Code tab's Terminal pane instead; the app shares it:

Terminal
claude plugin marketplace add MTRCio/wp2next
claude plugin install wp2next@mtrc

Details and caveats (some of this route is Not yet confirmed): AI environments.

The Claude desktop app and Claude Code also take the skills installer (npx skills add MTRCio/wp2next -g -a claude-code) if you prefer it to the plugin.

Manual install from a git clone (update later with git pull). Link only the skills/wp2next folder, never the whole repo:

For Claude desktop

The app's local sessions read ~/.claude/skills/, so link the skill there, as for Claude Code:

Terminal
git clone https://github.com/MTRCio/wp2next.git ~/.local/share/wp2next
mkdir -p ~/.claude/skills
ln -s ~/.local/share/wp2next/skills/wp2next ~/.claude/skills/wp2next

On Windows a directory junction stands in for the symlink (no admin rights or Developer Mode needed).

Where each agent reads skills from, and Codex's permission settings: AI environments.

How to type commands

This page writes wp2next <command>. In your agent:

For Claude desktop
Terminal
/wp2next:init                 # plugin install: every command is namespaced
/wp2next init                 # npx skills or git-clone install

All 22 commands, one page each: reference/commands.

init: save your defaults

Run once per machine, in any folder:

Code
wp2next init

It asks about 15 questions in five batches (role, GitHub, plans, ownership and secrets, forms, mode, tracking, quality, agent, folders, naming), each with the recommended answer first. It writes only the user config, ~/.config/wp2next/config.json (or $XDG_CONFIG_HOME/wp2next/config.json; on Windows C:\Users\<you>\.config\wp2next\config.json), which never holds secrets, then offers companion skills and runs doctor. Nothing is created in any account.

Defaults that fit most agencies and freelancers (the interview's recommendations, in config-key form):

SettingKeyRecommendedWhy
Roleprofile.roleagency or freelancerDrives later recommendations
GitHubgithub.ownerType, github.visibilityorg, privateA free org makes teammates and repo handover easy
Vercel planvercel.planproAny client or business site needs Pro (checked 2026-12, Vercel fair use⁠ (external site))
Sanity plansanity.planfreeFits most small marketing sites; Growth when you need more roles or private datasets (checked 2026-12, sanity.io, pricing⁠ (external site))
Ownershipownershipclient-ownedThe client keeps control if you part ways; maker-owned-transfer-later is the faster start
Secretssecrets.backendthe manager you already use1password, keeper, bitwarden, doppler, infisical, keychain (macOS only), vercel or dotenv
Formsforms.destinations["resend"]Email is the safety net; HubSpot and monday.com go after it as CRM copies
Parity modeparity.defaultModepixelfaithful and facelift are per-site choices too
Trackingtracking.analytics, tracking.tagManagerGA4 + GTMYou confirm the stack per site in migrate
Qualityquality.wcag, quality.useImpeccable2.2-AA, trueimpeccable powers critique, audit and polish
Namingnaming.*, secrets.namespacerepo {code}-site, Vercel {code}-web, Sanity {code}, Studio {code}.sanity.studio, secrets wp2next/{code}{code} is the short site code

Useful variants:

Code
wp2next init secrets        # re-ask one batch: ownership, secret store, forms, default mode (keywords: reference/commands/init.md)
wp2next init --reset        # start from built-in defaults; the old file is kept as config.json.bak

Every key, its allowed values and the per-site overrides: Configuration reference. The helper script behind it (config.py show|get|set|validate): Scripts.

doctor

Run it whenever something seems off:

Code
wp2next doctor

It checks Node, pnpm, , Git, (on Windows) PowerShell, execution policy, winget and long paths, the gh/vercel/sanity logins, Local, your secret store, form keys inside a project (names only), Playwright, Chrome for Lighthouse, companion skills, impeccable, and whether wp2next is out of date or installed twice. It changes nothing and links each fix.

migrate

Open your agent in the folder where you keep projects (default ~/Sites; in the Claude desktop app, a Local session with that folder) and run:

Code
wp2next migrate mysite.local
  1. Interview. Short code, name, , mode, blog, languages, editors, deadline, tracking stack, consent, form destinations. Answers your user config already fixes are pre-filled, not re-asked.
  2. Echo-back table. Every name it will create. Nothing happens until you say yes. The answers go to wp2next.json in the new repo.
  3. Twelve phases, each ending at a . The agent stops before every resource it creates in an account (Sanity project, GitHub repo, Vercel project, webhook). Phase map: Concepts.
  4. Parity sign-off (phase 9). Until you sign off, nothing may change the look. After it, the agent offers optimize.

Stop any time; progress lives in wp2next.json. Pick up with wp2next status (add --dashboard for a one-page HTML overview).

Side commands you will use during a build: tracking, content, critique, audit, polish, optimize, facelift. See reference/commands.

Before launch

runs inside migrate phase 12 (CLAUDE.md and cutover). It turns tracking on in Vercel Production while the site is still noindex, runs three gates on that production deployment with tracking on, then sets NEXT_PUBLIC_SITE_INDEXABLE=true, adds the domain, moves DNS and re-scans after launch. Have whoever controls DNS on hand (the interview asks who, in batch M3).

  • Gate A: no open high-severity compliance finding.
  • Gate B: no or SEO Lighthouse regression vs WordPress.
  • Gate C: no unapproved seo parity regression.
Code
wp2next compliance       # privacy, consent, accessibility, form consent; not legal advice
wp2next seo parity       # titles, descriptions, canonicals, JSON-LD, sitemap: WordPress vs the Next build

Details: SEO and AI search: keeping your rankings through the move, Compliance: privacy, consent, accessibility and form checks. The go-live steps in plain words are in Step 7: Go live; tracking and in Tracking and search: analytics, consent and Search Console.

Handoff

If the site belongs to a client:

Code
wp2next handoff plan     # your tailored step list; changes nothing
wp2next handoff          # runs it, one confirmed step at a time; writes HANDOFF.md
wp2next handoff cleanup  # removes your access, after the support period

Full runbook (analytics, GTM, Sanity, GitHub, Vercel, domain last, key rotation): Handing a site over to the client.

When the last phase passes, wp2next asks once whether to count the finished migration on the public counter. It shows the exact anonymous text first and sends nothing without a yes: Handing a site over to the client.

Keep up to date

wp2next update updates the skill the way you installed it. wp2next upgrade, run inside a site built with an older version, brings that site forward on its own branch. See Updating wp2next and your sites.

Stuck? Run wp2next doctor, then Troubleshooting.