Step 5 of 7: Save your settings (init)
- Time
about 20 min
- Cost
free
Not done yet. Tick it at the end of the page.
init is a one-time setup conversation: your AI tool asks about 15 short questions and saves your
answers as defaults, so it doesn't ask again for every site. It creates nothing in any account and
saves no passwords or keys.
Commands are shown for Claude desktop, for every computer until you pick yours.
Do this
- Open your AI tool in the folder where you'll keep your website projects. A folder called
Sites in your home folder is the usual choice (
~/Siteson a Mac,C:\Users\<you>\Siteson Windows). wp2next creates each new project inside it.
a. Create the folder, if it doesn't exist yet:
In Finder, choose Go → Home, then File → New Folder, and name it Sites.
In File Explorer, open C:\Users\<you> (type %USERPROFILE% in the address bar and press Enter),
then New → Folder, and name it Sites.
b. In the Claude app, click Code. In the row of controls under the message box:
- click the first control (the environment) and pick the top entry under Local;
- click the project folder control next to it, choose Open folder…, and pick your
Sitesfolder; - set the permission mode to Manual for now (it asks before every change; you can switch to Accept edits once you're comfortable).
(desktop quickstart (external site), checked 2026-12; if the controls appear above the message box instead, update the app.)
mkdir -p ~/Sites
cd ~/Sites
claudeNew-Item -ItemType Directory -Force "$HOME\Sites" | Out-Null
Set-Location "$HOME\Sites"
claudemkdir -p ~/Sites
cd ~/Sites
codexNew-Item -ItemType Directory -Force "$HOME\Sites" | Out-Null
Set-Location "$HOME\Sites"
codexCreate a Sites folder in your home folder (as above), then in Cursor choose File > Open Folder,
pick Sites, and open the agent chat (Cmd+I on a Mac, Ctrl+I on Windows; mode Agent, see
step 1).
Your AI tool will ask before it runs things. That's a safety feature; keep it on.
In Manual mode, Claude shows each file change as a before-and-after view (a diff) with buttons to
approve or decline it, and asks before it runs a command. Read its one-line explanation, then
approve. After edits, a small +12 -1 style counter opens the full list of changes. Change the mode
with the mode control under the message box (Cmd+Shift+M on a Mac, Ctrl+Shift+M on Windows). Don't
turn on Bypass permissions: Anthropic says to use it only in sandboxed containers or virtual
machines (desktop docs (external site), checked 2026-12). The exact wording
of the command prompt's buttons isn't documented (check in the UI).
On Windows, Claude has no sandbox of its own, so reading what you approve matters even more (see the Windows guide).
When you first type claude in your Sites folder, it asks "Do you trust the files in this folder?".
Say Yes. Before each command it asks "Do you want to proceed?": read its one-line explanation and
answer 1. Yes. "Yes, and don't ask again" is fine for read-only checks such as ls, git status
and pnpm.
Codex asks before it writes outside your folder or uses the network. Approve the prompts as they come; see AI environments → Permissions.
The agent shows each command with Run and Skip (or Accept and Reject) buttons. Click Run (or Accept) on each one. Leave auto-run off unless you understand what it does.
- Start init.
/wp2next:init/wp2next:init$wp2next init/wp2next initYou can also just type "run wp2next init" in plain words. In the Claude app, / opens the list of
commands, or click + next to the message box and choose Slash commands.
-
Answer the questions. The Claude app and Claude Code show them as clickable choices; Codex and Cursor show a numbered list in chat, and you can answer like
1a 2b 3: my-business. Every question puts the recommended answer first. If you're unsure, pick it. The questions come in five groups:Group What it asks A good answer for a site owner You and GitHub Your role; whether code lives in an organization or your personal account; which one; private or public Site owner; an organization (or your personal account if you'll always work alone); Private Hosting and content plans Vercel plan and team; Sanity plan and organization Pro and the team from step 3; Free; personal account unless you made a Sanity organization Ownership, keys, forms, goal Who owns the accounts; where private keys are stored; where form messages go; how close the new site should look to the old one I own everything; if you use 1Password, Bitwarden or Keeper, pick it, otherwise pick None of these, then macOS Keychain on a Mac (free, built in) or Plain .env files on Windows (see Password manager); Email via Resend; Pixel parity Tracking, quality, tool How to measure visitors; where your visitors are; quality checks; which AI tool you use The Google stack unless you prefer something else (see Analytics and tags); your visitors' region (Europe, UK or Switzerland means you need a consent banner); the recommended checks; your tool Folders and names Where new projects go; where Local keeps sites; how things are named; your business name The defaults ( ~/Sitesand~/Local Sites, which on Windows mean the folders inC:\Users\<you>; the default names); your business nameThe look-alike choice ("goal") has three options: pixel parity (the new site looks exactly like the old one on a computer screen; phones get a cleaner layout), faithful (same look and content, small cleanups allowed), and facelift (same content and addresses, new design; see New design). You choose again for each site in step 6.
-
Check the summary table. At the end, the AI tool shows every answer in one table. Read it, then say yes (or tell it what to change). Nothing is saved until you do.
-
Pick companion skills, if you want them. The AI tool offers a few extra skills from Sanity, Vercel, Next.js and Playwright that help with parts of the job. It installs only the ones you pick, and asks before each install. The recommended ones are a safe choice.
-
Read the check-up.
initfinishes by runningdoctor, which checks your tools, logins and wp2next version. It changes nothing. Fix anything it reports (each problem comes with a fix), then run it again:
/wp2next:doctor/wp2next:doctor$wp2next doctor/wp2next doctorThe AI tool never asks for a password or key in these questions. If you ever see a request to paste one into the chat, don't. Keys are entered later, in step 6, into a hidden prompt in a terminal: see Entering a private key.
You'll know it worked when
- You said yes to the summary table and the AI tool says your settings were saved (in
~/.config/wp2next/config.json, on WindowsC:\Users\<you>\.config\wp2next\config.json). doctorreports no problems, or only ones you've chosen to leave (for example an optional tool).
If something goes wrong
- Codex keeps asking for approval, or downloads fail. That's Codex's sandbox; approve the prompts as they come (see item 1).
- Your AI tool keeps asking before each command or change. That's normal: see "Your AI tool will ask before it runs things" in item 1.
- The Claude app shows an older layout (the folder and environment controls above the message box). Update the app: on a Mac Claude → Check for Updates…, on Windows Help → Check for Updates…, then start a new session.
- The AI tool says a command was blocked and asks you to run it. That's a safety feature. Run the
exact command it gives you in a terminal (Claude app: the Terminal pane,
Ctrl+`), then tell it you're done. - Windows: the AI tool's commands fail with "is not recognized". Quit the AI tool completely and open it again so it picks up the tools from step 2. See the Windows guide.
- You picked the wrong answer. Run init again any time; it shows your current answers first.
- More: If it stops, Troubleshooting.
This page is docs/start/5-run-init.md in the wp2next repository. Read or edit it on GitHub (external site)