wp2next init
Saves your default answers once (accounts, plans, secret store, tracking, mode), then runs doctor.
| Synopsis | wp2next init [<batch> | --reset] (Claude desktop and Claude Code plugin: /wp2next:init; Codex: $wp2next init; Cursor: /wp2next init) |
|---|---|
| Changes code | No. It writes one settings file and nothing else |
| Touches outside services | No account is created or changed. If you pick companion skills, it shows each install command and asks before running it (one yes per command) |
| Reads | Your 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 |
| Writes | Your 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
- 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.
- Detects what it can, without changing anything: your GitHub login and organizations, your
Vercel user and teams, the sites in Local, 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. - Asks five short batches of questions: who you are and where code lives; hosting and CMS 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. - Shows all your answers in one table and waits for an explicit yes. Change anything and it shows the changed rows again.
- Saves the answers and checks the file is valid. The default for forms is email through Resend; HubSpot or monday.com can be added after it as CRM copies.
- Offers companion skills (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.
- Runs
doctorand lists anything missing, with the fix.
init saves defaults only. The questions about one particular site (its tracking IDs, consent banner,
form destinations, AI-crawler policy, compliance regions, handoff dates) are asked by
migrate and saved in that site's wp2next.json.
Arguments and options
| Argument | Effect |
|---|---|
| (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) |
--reset | Starts 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
/wp2next:init/wp2next:init$wp2next init/wp2next initwp2next init secrets: you switched password managers; re-asks the ownership, secret store, forms and default-mode batch.wp2next init forms: add HubSpot 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).
Related
- Step 5: Save your settings (init) (plain-language walkthrough)
doctor·migrate·help- Configuration reference
- Guides: Accounts and plans · Secrets · Companion skills
- Agent instructions:
references/commands/init.md (external site)