Configuration reference
wp2next remembers your answers in two small JSON files, so you answer each question once. This page lists every key in both files: what it holds, its type, its default, and who writes it.
Neither file ever holds a password, token or API key. Those live in your secret store (see
Secrets and environment variables).
config.py refuses to save anything that looks like a secret.
| File | Where | Scope | Commit it? |
|---|---|---|---|
| User config | ${XDG_CONFIG_HOME:-~/.config}/wp2next/config.json (override the path with WP2NEXT_CONFIG) | Your defaults for every site | No (it stays on your machine) |
| Project config | wp2next.json at the root of each site's repo | One site | Yes |
Precedence: project > user > built-in default. Objects merge key by key, so a site can set
sanity.projectId and still inherit sanity.org from your user config. A wp2next.json may also
contain any user key to override it for that one site (for example a different vercel.team).
Who writes them: wp2next init writes the user config from its interview.
config.py init-project creates wp2next.json during wp2next migrate, and later
commands update the keys they own (listed in the "Set by" column below). You can change any key
yourself with scripts/config.py; never edit the JSON by hand if you can avoid it, because set
validates before it writes. Usage is in Scripts.
python3 <skill-folder>/scripts/config.py show # effective config
python3 <skill-folder>/scripts/config.py set vercel.team my-team # user config
python3 <skill-folder>/scripts/config.py set mode facelift --project # this site's wp2next.json
python3 <skill-folder>/scripts/config.py validate # check both filesOn Windows, type py -3 instead of python3; the rest is the same. In the Claude desktop app you
can also just ask: "set my Vercel team to my-team".
How to read the tables:
- Keys are dotted:
tracking.cmp.provideris{"tracking": {"cmp": {"provider": …}}}. ""means "not set yet": the next interview asks for it.- An "enum" type lists every allowed value.
""is also accepted for enum strings and means unset. - Source of truth: the schema in
skills/wp2next/scripts/config.py (external site) (DEFAULTS,USER_SCHEMA,PROJECT_SCHEMA) and the agent referenceskills/wp2next/references/config.md (external site). If this page and the code disagree, the code wins.
User config keys
About you
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
version | integer, 1 | 1 | config.py | File format version |
profile.role | enum: freelancer, agency, in-house, site-owner | "" | init | Who you are; changes the recommendations |
profile.orgName | text | "" | init | Your business name, used in docs and handover notes |
profile.defaultDisplaySuffix | text | "" | you | Optional text added to site titles (for example " · Acme Group") |
agent.primary | enum: claude-code, codex, cursor, other | "" | init | Your main AI coding tool; changes install hints |
Folders and names
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
paths.reposDir | folder | ~/Sites | init | Where new site repos are created |
paths.localSitesDir | folder | ~/Local Sites | init | Where Local keeps its WordPress sites |
naming.repo | pattern with {code} | {code}-site | init | GitHub repo name |
naming.vercelProject | pattern | {code}-web | init | Vercel project name |
naming.sanityProject | pattern | {code} | init | Sanity project name |
naming.studioHost | pattern | {code} | init | Studio address: <host>.sanity.studio |
{code} is replaced with the site's short code (code in wp2next.json).
Accounts
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
github.ownerType | enum: personal, org | org | init | New repos under your own account or an organization |
github.owner | GitHub login or org | "" | init; migrate interview (per site, M3 "Change for this site"); handoff (per site) | Account that owns new repos |
github.visibility | enum: private, public, internal | private | init | Visibility of new repos |
vercel.team | team slug | "" | init; migrate interview (per site, M3 "Change for this site"); handoff (per site) | Vercel team for new projects |
vercel.plan | enum: hobby, pro, enterprise | pro | init | Your Vercel plan. Hobby is for non-commercial use only (see accounts and plans) |
sanity.org | organization ID | "" | init; migrate interview (per site, M3 "Change for this site"); handoff (per site) | Sanity organization. Blank means a personal Sanity account |
sanity.plan | enum: free, growth, enterprise | free | init | Your Sanity plan |
ownership | enum: client-owned, maker-owned-transfer-later, maker-owned | client-owned | init; confirmed by handoff | Who owns the accounts the site lives in. Picks the handoff runbook. Per site: copied into wp2next.json by config.py init-project. Change it for one site with config.py set ownership <value> --project |
Secret store
Only names and IDs, never values. See Secrets for each backend.
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
secrets.backend | enum: 1password, keeper, bitwarden, doppler, infisical, keychain, vercel, dotenv | dotenv | init; migrate interview (per site, M3 "Change for this site"); handoff (per site) | Where passwords and keys are stored |
secrets.account | text | "" | init | 1Password only: account sign-in address or ID (not a password) |
secrets.namespace | pattern | wp2next/{code} | init | Item, project or folder name in the store. The older naming.secretsNamespace is read only as a fallback, and validate warns about it |
secrets.vault | vault name | unset | init | 1Password vault (default: your default vault). May be a user default or per site |
Per-site secret-store keys (secrets.record, secrets.project, secrets.config, secrets.env,
secrets.environmentId) belong in wp2next.json only; see Project: secret store.
Forms
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
forms.destinations | ordered list of resend, hubspot, monday, webhook, each once | ["resend"] | init; migrate interview | Where form submissions go. resend (email) or webhook is the safety net and must succeed; hubspot and monday are CRM copies made after it. validate warns when there is no safety net. See Forms and CRM |
forms.provider | text or list | none | nobody | Deprecated (before 2.0). Read and migrated to forms.destinations; never write it |
forms.monday.defaultCountry | two-letter country code | unset (the code falls back to US) | you | Country used for phone numbers written to monday.com phone columns |
Tracking and consent
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
tracking.analytics | enum: ga4, hubspot, plausible, fathom, matomo, posthog, vercel-analytics, none; or a list of them (none can't be combined) | ga4 | init; confirmed in migrate | Analytics tool. The interview proposes GA4 and you confirm or pick another |
tracking.tagManager | enum: gtm, none | gtm | init; confirmed in migrate | gtm: every tag loads through Google Tag Manager. none: the analytics tool loads directly, no extra tags |
tracking.searchConsole.google | boolean | true | init | Verify the domain in Google Search Console |
tracking.searchConsole.bing | boolean | true | init | Verify the domain in Bing Webmaster Tools |
tracking.defaultExtraTags | list of tag keys | [] | init | Tags you usually add through GTM. Ignored when tagManager is none |
tracking.consent | enum: us-only, consent-mode-v2, cmp (same as consent-mode-v2) | us-only | init; migrate (from the visitor regions) | Consent setup |
tracking.cmp.provider | enum: termly, cookieyes, cookiebot, usercentrics, onetrust, osano, iubenda, enzuzo, other, none | "" | init; tracking | Consent banner (CMP) you usually use. wp2next never picks one for you |
tracking.cmp.googleCertified | boolean | false | init | Whether that CMP is on Google's certified list (matters for AdSense and Ad Manager in the EEA, UK and Switzerland) |
tracking.cmp was plain text in older files ("cmp": "CookieYes"). It still loads, with a warning,
and init-project turns it into {"provider": "cookieyes"}.
SEO, brand and internal pages
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
seo.aiCrawlers | enum: allow-all, search-only, block-all, undecided | undecided | migrate interview; seo aeo | robots.txt policy for AI crawlers. Always your choice, never decided for you |
seo.llmsTxt | boolean | false | you | Publish /llms.txt (optional; Google Search does not use it) |
seo.indexNow | boolean | false | you | Ping IndexNow (Bing and others) when content is published |
brand.guide | boolean | true | migrate interview | Build the private brand guide at /brand/. false keeps only the packages/brand source of truth |
routes.brand | enum: auto, on, off | auto | you; migrate; handoff | The unlinked /brand/ page. auto = on in development and preview, off (404) in production. Applied as env WP2NEXT_BRAND_ROUTE |
routes.components | enum: auto, on, off | auto | you; migrate; upgrade | The unlinked /components/ library. Same rules; env WP2NEXT_COMPONENTS_ROUTE |
Mode and quality
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
parity.defaultMode | enum: pixel, faithful, facelift | pixel | init | Default migration mode (see concepts) |
quality.wcag | enum: 2.1-AA, 2.2-AA, 2.2-AAA | 2.2-AA | init | Accessibility target |
quality.useImpeccable | boolean | true | init | Use the impeccable design skill when it is installed |
The skill itself
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
companions.installed | list of companion ids (for example sanity-toolkit) | [] | init; doctor | Companion skills you installed; doctor checks them. See companion skills |
companions.autoOffer | boolean | true | init | Offer companion installs and post-parity reviews automatically |
install.method | enum: plugin, skills-cli, git, copy, unknown | unknown | init; update; doctor | How wp2next was installed; update and uninstall use it |
report.endpoint | https://… URL or "" | "" | you | Optional. Where wp2next report POSTs the anonymous completion report instead of opening a GitHub issue. Off by default |
Project keys (wp2next.json)
Created by config.py init-project when migrate starts a site. It copies your user defaults, fills
the naming patterns with the site code, records the wp2next version and sets every phase to todo.
The "Default" column shows what init-project writes.
Identity and names
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
code | lowercase letters, digits and dashes, max 40 (required) | from --code | migrate | Short site code; fills {code} everywhere |
displayName | text | from --display-name | migrate | Public site name (Studio title, page titles) |
domain | bare host such as example.com (no https://) | from --domain | migrate | Production domain |
localSlug | text | from --local-slug | migrate | Local site folder; the WordPress copy runs at https://<localSlug>.local |
repo | text | naming.repo filled in | migrate; status (repairs) | Final GitHub repo name |
vercelProject | text | naming.vercelProject filled in | migrate; status | Final Vercel project name |
studioHost | text | naming.studioHost filled in | migrate; status | Final Studio host |
sanity.projectId | text | "" | migrate (phase 7) | Sanity project ID, set when the project is created |
sanity.dataset | text | production | migrate | Sanity dataset |
Build
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
mode | enum: pixel, faithful, facelift | parity.defaultMode | migrate interview | This site's migration mode |
breakpoint | number or null | null | migrate (phase 1) | The WordPress theme's own desktop breakpoint, measured |
departures | list of text or objects | [] | migrate, after you approve | Intentional differences from WordPress, with reason and who approved, e.g. {"what", "why", "approvedBy", "date"} |
Forms (per site)
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
forms.destinations | as in the user config | copied from the user config | migrate interview; upgrade | Where this site's form submissions go |
forms.source | text | the domain | migrate | Source label shown in emails and webhook payloads |
forms.recipients | list of addresses, or {"form": "...", "to": ["..."]} objects | [] | migrate (from what phase 1 found on the WordPress site) | Who gets each form by email. These become env FORMS_TO |
forms.hubspot.forms | object: { "<form type>" or "*": "<form GUID>" or { "guid", "mode", "consent" } } | {} | migrate (phases 7–8) | How each form type is recorded in HubSpot. A GUID string means mode: "form" (Forms API, marketing contact). {"mode": "crm"} means a CRM upsert by email (no GUID). consent holds the exact checkbox wording, only when the HubSpot form has consent options on |
forms.monday.boards | object: { "<form type>" or "*": { "boardId", "groups", "columns", "topicField", "itemName" } } | {} | migrate (phases 7–8) | Where each form type lands in monday.com. boardId is digits stored as text; columns maps each field to a column id and type (email, phone, long_text, text, status, dropdown, link, date, numbers) |
forms.monday.defaultCountry | two-letter code | US | you | As in the user config |
Form GUIDs and monday.com IDs are public IDs, not secrets. config.py forms-config compiles them into
apps/web/src/lib/forms/config.ts; run it again whenever these keys change.
Tracking (per site)
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
tracking.analytics, tracking.tagManager, tracking.searchConsole | as in the user config | copied from the user config | migrate interview | This site's tracking stack |
tracking.gtm | text, GTM-XXXXXXX | "" | migrate; handoff | Tag Manager container ID (public). Only with tagManager: gtm |
tracking.ga4 | text, G-XXXXXXXXXX | "" | migrate | GA4 measurement ID (public). Only when analytics includes ga4 |
tracking.gscProperty | text, e.g. sc-domain:example.com | "" | migrate (phase 11) | Search Console Domain property, set once verified |
tracking.tags | object: { "<tag key>": { "id": "...", ... } } | one {"id": ""} per defaultExtraTags entry (only with GTM) | migrate; tracking | Extra tags and their public IDs, stored as text. "id": "" means chosen but the ID is not known yet |
tracking.leadParams | list of lower_snake_case names | unset (code default ["form_type", "form_location"]) | migrate | Parameters the lead event carries; must match what the contact form pushes |
tracking.consent | as in the user config | copied | migrate | This site's consent setup |
tracking.cmp.provider, tracking.cmp.googleCertified | as in the user config | copied | migrate; tracking | This site's consent platform |
tracking.cmp.id | text | "" | migrate (phase 5) | The CMP's public site key (Termly website UUID, CookieYes website key, Cookiebot CBID…) |
tracking.cmp.detectedFromWp | text | "" | migrate (phase 1) | What the WordPress site used, e.g. complianz-gdpr; "" if nothing |
Public IDs (tracking.gtm, tracking.ga4, tracking.cmp.id, every tracking.tags.*.id) stay text.
set tracking.tags.meta.id 1234567890 stores "1234567890", and validate rejects a numeric ID
written by hand.
Secret store (per site)
These identify one site's store. Always write them with --project: in the user config they would make
every site share one store.
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
secrets.backend, secrets.namespace | as in the user config | copied, namespace filled in | migrate (interview M3 "Change for this site"); handoff | This site's store |
secrets.record | Keeper record UID | unset | migrate interview | Keeper: the one record holding this site's keys |
secrets.project | ID or name | unset | migrate interview | Bitwarden Secrets Manager project ID, Doppler project, or Infisical project ID |
secrets.config | name | unset (Doppler default dev) | migrate interview | Doppler config |
secrets.env | slug | unset (Infisical default dev) | migrate interview | Infisical environment |
secrets.environmentId | ID | unset | migrate interview | 1Password Environment ID (switches secrets.py to Environments mode) |
Compliance
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
compliance.industry | list of health, legal, finance, real-estate, alcohol-cannabis, education, nonprofit, kids, or ["none"] | [] (not asked yet) | migrate interview; compliance | Industry rules the compliance scan checks |
compliance.regions | list of us, us-<state> (e.g. us-ca), eu-uk, canada, other | [] | migrate interview; compliance | Where visitors are; drives consent and which privacy laws the scan considers |
compliance.lastScan | YYYY-MM-DD or "" | "" | compliance | Date of the last compliance report |
Brand
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
brand.guide | boolean | copied | migrate interview | This site gets the /brand/ guide |
brand.slug | lowercase letters, digits, dashes | the site code | migrate | Brand file name: packages/brand/brands/<slug>.json |
brand.edition | version like 1.0 or 1.0.0, or "" | "" | migrate (brand step) | Brand guide edition, mirrored from the brand file |
brand.status | enum: proposed, approved, released | proposed | migrate; handoff | proposed until the client signs off; released once shared externally or live |
brand.signedOff | { "date": "YYYY-MM-DD", "by": "..." } or null | null | after client sign-off | When the brand was approved and by whom (a role, not a personal email) |
routes.brand, routes.components | as in the user config | copied | you; handoff | This site's internal-page switches |
SEO and content
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
seo.aiCrawlers, seo.llmsTxt, seo.indexNow | as in the user config | copied | migrate interview; seo | This site's choices |
seo.lastParity | YYYY-MM-DD, ISO timestamp or "" | "" | seo parity; migrate | Last SEO parity run (reports in .wp2next/seo/) |
seo.lastAudit | YYYY-MM-DD, ISO timestamp or "" | "" | seo audit | Last SEO audit |
content.voiceGuide | path | docs/content/voice.md | content | Voice guide used by content refresh |
content.lastAudit | YYYY-MM-DD, ISO timestamp or "" | "" | content audit | Last content audit (.wp2next/content/) |
Progress and lifecycle
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
phases | object { "1": … "12": … }, each done, in-progress or todo | all todo | migrate at each checkpoint; status | Progress through the 12 phases. Phase 0 (the interview) is not tracked |
wp2next.version | version, e.g. 2.0.0 | the installed version (1.0.0 with --legacy) | init-project; upgrade | The wp2next version that built or last upgraded this site; upgrade reads it to pick migration notes |
parity.signedOff | { "date": "YYYY-MM-DD", "by": "..." } or null | null | migrate, after sign-off | When parity was signed off and by whom (a role like client). Before sign-off, optimize only applies changes with no visual effect |
lighthouse.lastRun | YYYY-MM-DD, ISO timestamp or "" | "" | migrate; optimize; upgrade | Last Lighthouse run (reports in .wp2next/lighthouse/) |
optimize.lastRun | YYYY-MM-DD, ISO timestamp or "" | "" | optimize | Last optimize run |
status.dashboardUrl | https://… or "" | "" | status --dashboard | Private URL of the published status page, reused on the next publish |
Handoff
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
handoff.status | enum: not-started, in-progress, done | not-started | handoff | Client handover progress |
handoff.supportUntil | YYYY-MM-DD or "" | "" | handoff | End of the agreed support period |
handoff.checklist | object { "<item>": { ... } } | {} | handoff | Free-form record of each handover step, e.g. {"github": {"done": true, "date": "2026-12-01"}} |
Completion report
The opt-in count of finished migrations (wp2next report). Offered once, after
phase 12.
| Key | Type | Default | Set by | What it means |
|---|---|---|---|---|
report.status | enum: not-asked, declined, sent, pending | not-asked | report.py record | declined is never asked again; pending = approved but not sent yet |
report.mode | enum: anonymous, showcase, or "" | "" | report.py | What was sent. showcase adds the site name and domain, only with the client's permission |
report.id | UUID or "" | "" | report.py | Random ID made once; a resend reuses it so duplicates can be dropped |
report.sentAt | ISO timestamp or "" | "" | report.py | When the report went out |
report.issueUrl | https://… or "" | "" | report.py | The GitHub issue it created (empty for an endpoint POST) |
report.endpoint | as in the user config | "" | you | Per-site override |
report.sourceType | enum: gutenberg, php-templates, block-theme, elementor, divi, wpbakery, beaver-builder, bricks, oxygen, avada, other | unset | report | Optional override of the source type report.py detects |
Tag keys
tracking.defaultExtraTags and tracking.tags use these keys.
| Kind | Keys |
|---|---|
| Loaded through GTM (the container generator knows them) | google-ads, meta, linkedin, microsoft-ads, clarity, hotjar, tiktok, callrail, pinterest, reddit, x, snap, hubspot |
| Analytics tools the site code loads directly | plausible, fathom, matomo, posthog, vercel-analytics |
| Without a tag manager, the code can also load directly | google-ads, hubspot, clarity |
Aliases such as facebook, hs or vercel are accepted with a warning naming the preferred key;
python3 skills/wp2next/references/gtm-container.py --list-tags prints the full list. Any other key
(for example nextdoor) is kept with a warning: the generator skips it and lists it in
docs/analytics/README.md under "Set up by hand". The fields each tool needs are in
references/analytics-providers.md (external site). See also
Tracking and search.
Validation rules
setvalidates before writing and refuses invalid values (exit 1).--forceskips that; avoid it.setrefuses secrets: keys named liketoken,password,secret,apiKeyorwebhookUrl, and values that look like known token formats (GitHub, Resend, OpenAI-stylesk-, HubSpotpat-, JWTs, Slack, AWS, Google, 1Password, Doppler, private keys), at any depth.validatechecks the same way, andshowandgetmask one that slipped in by hand. Only the key path is ever printed.- Unknown keys are kept and reported as warnings, so newer files still load in older versions.
- Pre-2.0 keys are migrated:
forms.providerbecomesforms.destinations.showandgetmigrate in memory;setandvalidaterewrite the file and say so (validate --no-migrateonly reports). validatewarns whenhubspotis a form destination in form mode but the HubSpot tracking code isn't loaded (nohubspotintracking.analyticsand notracking.tags.hubspot.id): leads arrive without visit attribution. Add the tracking code, or use{"mode":"crm"}for the form informs.hubspot.forms.- Exit codes:
0ok,1invalid or missing key,2usage error.
Example
A shortened wp2next.json. The full example, including HubSpot consent text and a monday.com board, is
in references/config.md (external site), and a
full user config is in
references/config.example.json (external site).
{
"version": 1,
"code": "acme",
"displayName": "Acme Dental",
"domain": "example.com",
"localSlug": "acme",
"repo": "acme-site",
"vercelProject": "acme-web",
"studioHost": "acme",
"sanity": { "projectId": "", "dataset": "production" },
"secrets": { "backend": "1password", "namespace": "wp2next/acme", "vault": "Sites" },
"mode": "pixel",
"forms": {
"destinations": ["resend", "hubspot"], "source": "example.com", "recipients": ["office@example.com"],
"hubspot": { "forms": { "contact": { "mode": "crm" } } }
},
"tracking": {
"analytics": "ga4",
"tagManager": "gtm",
"gtm": "GTM-ABC1234",
"ga4": "G-ABCDE12345",
"tags": { "meta": { "id": "" } },
"consent": "consent-mode-v2",
"cmp": { "provider": "termly", "id": "", "googleCertified": true, "detectedFromWp": "" }
},
"compliance": { "industry": ["health"], "regions": ["us", "eu-uk"], "lastScan": "" },
"phases": { "1": "done", "2": "in-progress", "3": "todo" },
"wp2next": { "version": "2.0.0" }
}Related
- Environment variables: the values that do not belong in these files
- Scripts:
config.py,secrets.pyand the other helpers - Concepts: phases, modes, config files and secrets
- Glossary: wp2next.json, user config