Skip to content
wp2next, home
Skip to the page

wp2next init

Saves your default answers once (accounts, plans, , tracking, mode), then runs doctor.

Your AI tool

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

Synopsiswp2next init [<batch> | --reset] (Claude desktop and Claude Code plugin: /wp2next:init; Codex: $wp2next init; Cursor: /wp2next init)
Changes codeNo. It writes one settings file and nothing else
Touches outside servicesNo account is created or changed. If you pick companion skills, it shows each install command and asks before running it (one yes per command)
ReadsYour GitHub and Vercel logins and teams (if gh and vercel are logged in), your Local Sites folder, which password-manager CLIs are installed, how wp2next was installed
WritesYour user config: ~/.config/wp2next/config.json (Windows: C:\Users\<you>\.config\wp2next\config.json; or $XDG_CONFIG_HOME/wp2next/config.json). Never a password, token or key

What it does

  1. Looks at what you already have. On a first run it says it will ask about 15 short questions. If you've run it before, every question starts from your current answer.
  2. Detects what it can, without changing anything: your GitHub login and organizations, your Vercel user and teams, the sites in , which secret-store tools are installed (1Password, Keeper, Bitwarden, Doppler, Infisical, macOS Keychain on a Mac, Vercel), and whether wp2next came in as the Claude plugin (desktop app or Claude Code), through npx skills, a git clone or a copied folder. These only pre-fill answers.
  3. Asks five short batches of questions: who you are and where code lives; hosting and plans; who owns the accounts, where secrets live, where form submissions go and the default mode (pixel, faithful or facelift); tracking, quality and your AI tool; folders and naming. Each question has a recommended answer listed first. It never asks for a password, token or API key. If you paste one, it won't repeat or save it and will tell you to rotate it. In the Claude desktop app and Claude Code the questions are clickable choices; in Codex and Cursor they come as numbered lists in chat, and you answer like 1a 2b 3: my-org.
  4. Shows all your answers in one table and waits for an explicit yes. Change anything and it shows the changed rows again.
  5. Saves the answers and checks the file is valid. The default for forms is email through ; HubSpot or monday.com can be added after it as CRM copies.
  6. Offers (optional): build helpers, a Vercel deploy helper, after-parity review skills, browser checks, a writing helper and Resend's email skill. You can pick none and say whether to be asked again later. See Companion skills.
  7. Runs doctor and lists anything missing, with the fix.

init saves defaults only. The questions about one particular site (its tracking IDs, , form destinations, AI-crawler policy, compliance regions, handoff dates) are asked by migrate and saved in that site's wp2next.json.

Arguments and options

ArgumentEffect
(none)Asks every question again, pre-filled with your current answers
<batch>Asks only that batch again. Keywords: role or github (batch 1: role, GitHub owner and visibility); plans (batch 2: Vercel and Sanity plans, team and org); secrets, ownership or forms (batch 3: ownership, secret store, form destinations, default mode); tracking (batch 4: tracking, visitors, quality, AI tool); naming or folders (batch 5: folders, names, business name)
--resetStarts again from wp2next's built-in defaults. It asks first, then renames the old file to config.json.bak instead of deleting it

Examples

Run it once after installing wp2next:

For Claude desktop
Text
/wp2next:init
  • wp2next init secrets: you switched password managers; re-asks the ownership, secret store, forms and default-mode batch.
  • wp2next init forms: add or monday.com to your default form destinations (same batch).
  • wp2next init tracking: change your default analytics stack for future sites.
  • wp2next init --reset: start over from the built-in defaults (the old file is kept as a backup).