Step 2 of 7: Install wp2next
- Time
about 30–60 min
- Cost
free
- You need
the AI tool from step 1, and a terminal: the Terminal app on a Mac, Windows Terminal on Windows
Not done yet. Tick it at the end of the page.
Your AI tool needs a few free programs on your computer to build a website, and then wp2next itself. Nothing here touches your WordPress site or creates any account.
Commands are shown for Claude desktop, for every computer until you pick yours.
Do this
Even if you use the Claude desktop app, these installs happen once in a terminal window. Paste the commands one block at a time and wait for each to finish. The steps differ between Mac and Windows; follow the one for your computer.
- Install the basic tools.
a. Apple's command line tools. They include Git and Python 3. Open the Terminal app (Cmd+Space, type "Terminal", press Return) and paste this. A window pops up; click Install. The download can take up to 30 minutes. If it says the tools are already installed, that's fine; go on.
xcode-select --installb. Homebrew, the usual Mac installer for tools like these. Skip this if brew --version already
prints a version. (Source: brew.sh (external site).)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"It asks for your Mac login password. Nothing shows as you type; type it and press Return. When it says "Press RETURN", press Return.
When it finishes, it prints Next steps: lines you must run so your terminal can find brew. On a
Mac with Apple silicon (M1 or later) they are usually these three. If Homebrew prints different
lines, copy the ones it prints instead.
echo >> ~/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"Check with brew --version. If it says "command not found", you missed these lines: run them, then
go on.
c. Node.js 24, with fnm. Node.js runs the website code. fnm is a small helper that keeps the right Node.js version in place for each project. Use version 24 exactly: the newer "LTS" (26) is not what wp2next projects use.
brew install fnm
echo 'eval "$(fnm env --use-on-cd --shell zsh)"' >> ~/.zshrc
source ~/.zshrc
fnm install 24
fnm default 24d. pnpm 11.10.0, the package installer every wp2next project uses. Use exactly this version.
npm install -g pnpm@11.10.0wp2next runs on Windows directly; you don't need WSL or Linux. Use Windows 11 if you can: on Windows 10 the screenshot and parity checks don't run. If Windows 10 is all you have, the Windows guide covers an advanced alternative (WSL2).
a. PowerShell 7 in Windows Terminal. Press the Windows key, type Terminal, press Enter. (No
Terminal on Windows 10? Install Windows Terminal from the Microsoft Store.) Paste this and press
Enter. Accept any prompt: the first winget command asks whether you agree to the source
agreements (type Y and press Enter), and Windows may ask for permission to install (click
Yes).
winget install --id Microsoft.PowerShell --source wingetThen make it the default: in Terminal, open Settings → Startup → Default profile, choose
PowerShell (not "Windows PowerShell"), click Save (check in the UI). Then close Terminal and
open it again: the new PowerShell may not appear until Terminal restarts. The prompt starts with
PS. Every Windows command on these pages goes here.
b. Allow PowerShell to run scripts. Windows blocks them by default, and the tools below start through small scripts. Windows has two PowerShells that keep this setting separately: PowerShell 7, which you just installed, and the older Windows PowerShell, which some programs (including AI tools) may use. These two lines change it in both, for your user only, no admin needed:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
powershell -NoProfile -Command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force"If it asks to confirm, type Y and press Enter. To check, run these two lines; CurrentUser
should say RemoteSigned in both lists:
Get-ExecutionPolicy -List
powershell -NoProfile -Command "Get-ExecutionPolicy -List"(PowerShell 7 stores this setting in its own file, while Windows PowerShell keeps it in the registry, so setting one doesn't set the other; checked 2026-12, about_Execution_Policies (external site).)
c. Git and Node.js 24. Git keeps your site's history. Node.js runs the website code. Use the
Node.js 24 package exactly: the plain "LTS" package now gives you 26, which wp2next projects don't
use. Accept any prompt (type Y, or click Yes on a Windows dialog).
winget install --id Git.Git -e --source winget
winget install --id OpenJS.NodeJS.24 -eClose Terminal and open it again (so it finds the new programs), then install pnpm 11.10.0, the package installer every wp2next project uses. Use exactly this version.
npm install -g pnpm@11.10.0d. Python 3, which runs wp2next's helper scripts. This is python.org's recommended installer for Windows:
winget install 9NQ7512CXL7T -e --accept-package-agreements --accept-source-agreements --disable-interactivityIf the Microsoft Store is blocked on your PC (common on work computers), install Python this way instead, or use the installer from python.org (external site):
winget install --id Python.Python.3.13 -e --source wingetClose Terminal, open it again, and finish the setup (only needed after the first command, not the
Python.Python.3.13 fallback):
py install --configure -yIf typing python3 opens the Microsoft Store, ignore it: on Windows you use py, and wp2next finds
the right command by itself.
Use your distribution's packages for Git and Python 3, then fnm with Node.js 24 and
npm install -g pnpm@11.10.0, as in Quick start → Toolchain.
-
Install Google Chrome from google.com, chrome (external site) if you don't have it. wp2next uses it to measure the speed and accessibility of your old and new site (Lighthouse).
-
Close the terminal, open a new window, and check:
node --version # v24.x
pnpm --version # 11.10.0
python3 --version
git --versionnode --version # v24.x
pnpm --version # 11.10.0
py --version
git --versionUsing the Claude desktop app? Quit it completely and open it again, so it finds the tools you just installed. On a Mac: Claude → Quit Claude (Cmd+Q). On Windows, closing the window may leave it running; if it has an icon near the clock, quit it from there (check in the UI).
- Install wp2next into your AI tool. Pick your tool.
a. In the Claude app, open Customize in the sidebar, then Plugins.
b. Choose Add, then Add marketplace, type MTRCio/wp2next and confirm.
c. Find wp2next in that marketplace and install it.
d. Click Code, start a new session (see step 5), and type /wp2next: in the
message box. The list should show /wp2next:init, /wp2next:migrate and the other commands. If it
doesn't, type /reload-plugins and press Enter, then try again.
The labels may differ slightly in your version of the app (check in the UI). Plugins added under Customize are saved to your Claude account (checked 2026-12, Claude plugins (external site)).
If the commands still don't appear (whether these account plugins always load in the Code tab isn't confirmed yet, Not yet confirmed), use the terminal route once. It adds the plugin for the whole computer, and the desktop app reads it too (plugin docs (external site)). First remove wp2next from Customize → Plugins, so only one copy loads. Then:
Open the Terminal app (or, in the Code tab, start a session on any folder, for example Documents,
and open the Terminal pane with Ctrl+`). Paste:
curl -fsSL https://claude.ai/install.sh | bash
claude plugin marketplace add MTRCio/wp2next
claude plugin install wp2next@mtrcIf claude isn't found after the first line, close the terminal window (or pane), open a new one,
and run the last two lines.
Do this in Windows Terminal (the PowerShell prompt from 1a), not in the Claude app's Terminal pane. The pane keeps the settings the app started with, so it can't find a program installed inside it, and which shell it opens on Windows isn't documented (Not yet confirmed). Paste:
irm https://claude.ai/install.ps1 | iex
claude plugin marketplace add MTRCio/wp2next
claude plugin install wp2next@mtrcIf claude "is not recognized" after the first line, close Windows Terminal completely, open it
again, and run the last two lines.
Then quit the Claude app completely, open it again, and start a new session in the Code tab.
Inside Claude Code (type claude in the terminal first), type these lines one at a time:
/plugin marketplace add MTRCio/wp2next
/plugin install wp2next@mtrc
/reload-pluginsIn the terminal (not inside Codex):
npx skills add MTRCio/wp2next -g -a codexIf it asks "Ok to proceed? (y)", type y and press Return (Enter on Windows). Then quit Codex and
start it again.
In the terminal:
npx skills add MTRCio/wp2next -g -a cursorIf it asks "Ok to proceed? (y)", type y and press Return (Enter on Windows). Then quit Cursor
completely (Cmd+Q on a Mac; File → Exit on Windows) and open it again.
Install it one way only. Two installs can load two different versions; wp2next warns you if it finds both. Other install routes (a git clone, other AI tools) are in AI environments.
You'll know it worked when
- The four checks in item 3 print
v24…,11.10.0and a version for Python and Git. - Your AI tool lists wp2next:
In a Code session, type /wp2next: and the list shows /wp2next:init, /wp2next:migrate and the other commands.Type /wp2next: and the list shows /wp2next:init, /wp2next:migrate and the other commands.Type /skills and wp2next is in the list. (You run it as $wp2next.)Type / in the agent chat (Cmd+I or Ctrl+I, mode Agent; see step 1) and wp2next is in the list.If something goes wrong
brew: command not found. Homebrew's "Next steps" lines weren't run. Run the three lines in 1b, then try again.node: command not foundafter installing. Open a new Terminal window and try again. If it still fails, run the commands in 1c again, thenbrew doctor. (Using a Linux or older shell setup? See Troubleshooting → Setup.)- You see "permission denied" when installing pnpm. Node.js was installed some other way
earlier. Run the fnm commands in 1c again, then retry. Don't put
sudoin front. - Don't install Node.js with
brew install node. It may give you the wrong version, and your terminal may not find it. Use fnm, as in 1c.
… cannot be loaded because running scripts is disabled on this system. Run bothSet-ExecutionPolicylines in 1b again (one is for PowerShell 7, the other for the older Windows PowerShell). On a work PC, your IT team may have to allow it.'irm' is not recognized, orThe token '&&' is not a valid statement separator. You're in the wrong shell. Open a new Terminal tab with the PowerShell profile (1a).node,pnpm,gitorpy"is not recognized". Close Terminal completely and open it again. If it still fails, run that line of 1c or 1d again.node --versionshows v26. You installed the "LTS" package. Runwinget uninstall --id OpenJS.NodeJS.LTS, then the Node.js 24 line in 1c, then open a new Terminal.- The Claude app can't find
node,pnpmorgit, but Terminal can. Quit the app completely and open it again; it only picks up programs installed before it started. - More Windows fixes: Windows guide → Troubleshooting.
- The Claude app or Claude Code says
/wp2nextis unknown. The plugin puts every command under its name: type/wp2next:and pick from the list. - wp2next doesn't show in Cursor. Check that it's installed:
ls ~/.cursor/skills/wp2next/SKILL.md ~/.agents/skills/wp2next/SKILL.mdTest-Path "$HOME\.cursor\skills\wp2next\SKILL.md", "$HOME\.agents\skills\wp2next\SKILL.md"If one of the two lines prints a path (Mac) or True (Windows), wp2next is installed. Quit Cursor
completely and open it again. If neither does, run the install command in item 4 again.
- More: Troubleshooting → Setup, or If it stops.
This page is docs/start/2-install-wp2next.md in the wp2next repository. Read or edit it on GitHub (external site)