Skip to content
wp2next, home
Skip to the page

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 . Those live in your secret store (see Secrets and environment variables). config.py refuses to save anything that looks like a secret.

FileWhereScopeCommit it?
User config${XDG_CONFIG_HOME:-~/.config}/wp2next/config.json (override the path with WP2NEXT_CONFIG)Your defaults for every siteNo (it stays on your machine)
Project configwp2next.json at the root of each site's repoOne siteYes

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 . 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.

Terminal
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 files

On 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:

User config keys

About you

KeyTypeDefaultSet byWhat it means
versioninteger, 11config.pyFile format version
profile.roleenum: freelancer, agency, in-house, site-owner""initWho you are; changes the recommendations
profile.orgNametext""initYour business name, used in docs and handover notes
profile.defaultDisplaySuffixtext""youOptional text added to site titles (for example " · Acme Group")
agent.primaryenum: claude-code, codex, cursor, other""initYour main AI coding tool; changes install hints

Folders and names

KeyTypeDefaultSet byWhat it means
paths.reposDirfolder~/SitesinitWhere new site repos are created
paths.localSitesDirfolder~/Local SitesinitWhere Local keeps its WordPress sites
naming.repopattern with {code}{code}-siteinitGitHub repo name
naming.vercelProjectpattern{code}-webinitVercel project name
naming.sanityProjectpattern{code}initSanity project name
naming.studioHostpattern{code}initStudio address: <host>.sanity.studio

{code} is replaced with the site's short code (code in wp2next.json).

Accounts

KeyTypeDefaultSet byWhat it means
github.ownerTypeenum: personal, orgorginitNew repos under your own account or an organization
github.ownerGitHub login or org""init; migrate interview (per site, M3 "Change for this site"); handoff (per site)Account that owns new repos
github.visibilityenum: private, public, internalprivateinitVisibility of new repos
vercel.teamteam slug""init; migrate interview (per site, M3 "Change for this site"); handoff (per site)Vercel team for new projects
vercel.planenum: hobby, pro, enterpriseproinitYour Vercel plan. Hobby is for non-commercial use only (see accounts and plans)
sanity.orgorganization ID""init; migrate interview (per site, M3 "Change for this site"); handoff (per site)Sanity organization. Blank means a personal Sanity account
sanity.planenum: free, growth, enterprisefreeinitYour Sanity plan
ownershipenum: client-owned, maker-owned-transfer-later, maker-ownedclient-ownedinit; confirmed by handoffWho 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.

KeyTypeDefaultSet byWhat it means
secrets.backendenum: 1password, keeper, bitwarden, doppler, infisical, keychain, vercel, dotenvdotenvinit; migrate interview (per site, M3 "Change for this site"); handoff (per site)Where passwords and keys are stored
secrets.accounttext""init1Password only: account sign-in address or ID (not a password)
secrets.namespacepatternwp2next/{code}initItem, project or folder name in the store. The older naming.secretsNamespace is read only as a fallback, and validate warns about it
secrets.vaultvault nameunsetinit1Password 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

KeyTypeDefaultSet byWhat it means
forms.destinationsordered list of resend, hubspot, monday, webhook, each once["resend"]init; migrate interviewWhere 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.providertext or listnonenobodyDeprecated (before 2.0). Read and migrated to forms.destinations; never write it
forms.monday.defaultCountrytwo-letter country codeunset (the code falls back to US)youCountry used for phone numbers written to monday.com phone columns
KeyTypeDefaultSet byWhat it means
tracking.analyticsenum: ga4, hubspot, plausible, fathom, matomo, posthog, vercel-analytics, none; or a list of them (none can't be combined)ga4init; confirmed in migrateAnalytics tool. The interview proposes GA4 and you confirm or pick another
tracking.tagManagerenum: gtm, nonegtminit; confirmed in migrategtm: every tag loads through Google Tag Manager. none: the analytics tool loads directly, no extra tags
tracking.searchConsole.googlebooleantrueinitVerify the domain in Google Search Console
tracking.searchConsole.bingbooleantrueinitVerify the domain in Bing Webmaster Tools
tracking.defaultExtraTagslist of tag keys[]initTags you usually add through GTM. Ignored when tagManager is none
tracking.consentenum: us-only, consent-mode-v2, cmp (same as consent-mode-v2)us-onlyinit; migrate (from the visitor regions)Consent setup
tracking.cmp.providerenum: termly, cookieyes, cookiebot, usercentrics, onetrust, osano, iubenda, enzuzo, other, none""init; trackingConsent banner (CMP) you usually use. wp2next never picks one for you
tracking.cmp.googleCertifiedbooleanfalseinitWhether 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

KeyTypeDefaultSet byWhat it means
seo.aiCrawlersenum: allow-all, search-only, block-all, undecidedundecidedmigrate interview; seo aeorobots.txt policy for AI crawlers. Always your choice, never decided for you
seo.llmsTxtbooleanfalseyouPublish /llms.txt (optional; Google Search does not use it)
seo.indexNowbooleanfalseyouPing IndexNow (Bing and others) when content is published
brand.guidebooleantruemigrate interviewBuild the private brand guide at /brand/. false keeps only the packages/brand source of truth
routes.brandenum: auto, on, offautoyou; migrate; handoffThe unlinked /brand/ page. auto = on in development and preview, off (404) in production. Applied as env WP2NEXT_BRAND_ROUTE
routes.componentsenum: auto, on, offautoyou; migrate; upgradeThe unlinked /components/ library. Same rules; env WP2NEXT_COMPONENTS_ROUTE

Mode and quality

KeyTypeDefaultSet byWhat it means
parity.defaultModeenum: pixel, faithful, faceliftpixelinitDefault migration mode (see concepts)
quality.wcagenum: 2.1-AA, 2.2-AA, 2.2-AAA2.2-AAinitAccessibility target
quality.useImpeccablebooleantrueinitUse the impeccable design skill when it is installed

The skill itself

KeyTypeDefaultSet byWhat it means
companions.installedlist of companion ids (for example sanity-toolkit)[]init; doctorCompanion skills you installed; doctor checks them. See companion skills
companions.autoOfferbooleantrueinitOffer companion installs and post-parity reviews automatically
install.methodenum: plugin, skills-cli, git, copy, unknownunknowninit; update; doctorHow wp2next was installed; update and uninstall use it
report.endpointhttps://… URL or """"youOptional. 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 to todo. The "Default" column shows what init-project writes.

Identity and names

KeyTypeDefaultSet byWhat it means
codelowercase letters, digits and dashes, max 40 (required)from --codemigrateShort site code; fills {code} everywhere
displayNametextfrom --display-namemigratePublic site name (Studio title, page titles)
domainbare host such as example.com (no https://)from --domainmigrateProduction domain
localSlugtextfrom --local-slugmigrateLocal site folder; the WordPress copy runs at https://<localSlug>.local
repotextnaming.repo filled inmigrate; status (repairs)Final GitHub repo name
vercelProjecttextnaming.vercelProject filled inmigrate; statusFinal Vercel project name
studioHosttextnaming.studioHost filled inmigrate; statusFinal Studio host
sanity.projectIdtext""migrate (phase 7)Sanity project ID, set when the project is created
sanity.datasettextproductionmigrateSanity dataset

Build

KeyTypeDefaultSet byWhat it means
modeenum: pixel, faithful, faceliftparity.defaultModemigrate interviewThis site's migration mode
breakpointnumber or nullnullmigrate (phase 1)The WordPress theme's own desktop breakpoint, measured
departureslist of text or objects[]migrate, after you approveIntentional differences from WordPress, with reason and who approved, e.g. {"what", "why", "approvedBy", "date"}

Forms (per site)

KeyTypeDefaultSet byWhat it means
forms.destinationsas in the user configcopied from the user configmigrate interview; upgradeWhere this site's form submissions go
forms.sourcetextthe domainmigrateSource label shown in emails and webhook payloads
forms.recipientslist 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.formsobject: { "<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.boardsobject: { "<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.defaultCountrytwo-letter codeUSyouAs in the user config

Form GUIDs and 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)

KeyTypeDefaultSet byWhat it means
tracking.analytics, tracking.tagManager, tracking.searchConsoleas in the user configcopied from the user configmigrate interviewThis site's tracking stack
tracking.gtmtext, GTM-XXXXXXX""migrate; handoffTag Manager container ID (public). Only with tagManager: gtm
tracking.ga4text, G-XXXXXXXXXX""migrateGA4 measurement ID (public). Only when analytics includes ga4
tracking.gscPropertytext, e.g. sc-domain:example.com""migrate (phase 11)Search Console Domain property, set once verified
tracking.tagsobject: { "<tag key>": { "id": "...", ... } }one {"id": ""} per defaultExtraTags entry (only with GTM)migrate; trackingExtra tags and their public IDs, stored as text. "id": "" means chosen but the ID is not known yet
tracking.leadParamslist of lower_snake_case namesunset (code default ["form_type", "form_location"])migrateParameters the lead event carries; must match what the contact form pushes
tracking.consentas in the user configcopiedmigrateThis site's consent setup
tracking.cmp.provider, tracking.cmp.googleCertifiedas in the user configcopiedmigrate; trackingThis site's consent platform
tracking.cmp.idtext""migrate (phase 5)The CMP's public site key (Termly website UUID, CookieYes website key, Cookiebot CBID…)
tracking.cmp.detectedFromWptext""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.

KeyTypeDefaultSet byWhat it means
secrets.backend, secrets.namespaceas in the user configcopied, namespace filled inmigrate (interview M3 "Change for this site"); handoffThis site's store
secrets.recordKeeper record UIDunsetmigrate interviewKeeper: the one record holding this site's keys
secrets.projectID or nameunsetmigrate interviewBitwarden Secrets Manager project ID, Doppler project, or Infisical project ID
secrets.confignameunset (Doppler default dev)migrate interviewDoppler config
secrets.envslugunset (Infisical default dev)migrate interviewInfisical environment
secrets.environmentIdIDunsetmigrate interview1Password Environment ID (switches secrets.py to Environments mode)

Compliance

KeyTypeDefaultSet byWhat it means
compliance.industrylist of health, legal, finance, real-estate, alcohol-cannabis, education, nonprofit, kids, or ["none"][] (not asked yet)migrate interview; complianceIndustry rules the compliance scan checks
compliance.regionslist of us, us-<state> (e.g. us-ca), eu-uk, canada, other[]migrate interview; complianceWhere visitors are; drives consent and which privacy laws the scan considers
compliance.lastScanYYYY-MM-DD or """"complianceDate of the last compliance report

Brand

KeyTypeDefaultSet byWhat it means
brand.guidebooleancopiedmigrate interviewThis site gets the /brand/ guide
brand.sluglowercase letters, digits, dashesthe site codemigrateBrand file name: packages/brand/brands/<slug>.json
brand.editionversion like 1.0 or 1.0.0, or """"migrate (brand step)Brand guide edition, mirrored from the brand file
brand.statusenum: proposed, approved, releasedproposedmigrate; handoffproposed until the client signs off; released once shared externally or live
brand.signedOff{ "date": "YYYY-MM-DD", "by": "..." } or nullnullafter client sign-offWhen the brand was approved and by whom (a role, not a personal email)
routes.brand, routes.componentsas in the user configcopiedyou; handoffThis site's internal-page switches

SEO and content

KeyTypeDefaultSet byWhat it means
seo.aiCrawlers, seo.llmsTxt, seo.indexNowas in the user configcopiedmigrate interview; seoThis site's choices
seo.lastParityYYYY-MM-DD, ISO timestamp or """"seo parity; migrateLast SEO parity run (reports in .wp2next/seo/)
seo.lastAuditYYYY-MM-DD, ISO timestamp or """"seo auditLast SEO audit
content.voiceGuidepathdocs/content/voice.mdcontentVoice guide used by content refresh
content.lastAuditYYYY-MM-DD, ISO timestamp or """"content auditLast content audit (.wp2next/content/)

Progress and lifecycle

KeyTypeDefaultSet byWhat it means
phasesobject { "1": … "12": … }, each done, in-progress or todoall todomigrate at each checkpoint; statusProgress through the 12 phases. Phase 0 (the interview) is not tracked
wp2next.versionversion, e.g. 2.0.0the installed version (1.0.0 with --legacy)init-project; upgradeThe wp2next version that built or last upgraded this site; upgrade reads it to pick migration notes
parity.signedOff{ "date": "YYYY-MM-DD", "by": "..." } or nullnullmigrate, after sign-offWhen parity was signed off and by whom (a role like client). Before sign-off, optimize only applies changes with no visual effect
lighthouse.lastRunYYYY-MM-DD, ISO timestamp or """"migrate; optimize; upgradeLast Lighthouse run (reports in .wp2next/lighthouse/)
optimize.lastRunYYYY-MM-DD, ISO timestamp or """"optimizeLast optimize run
status.dashboardUrlhttps://… or """"status --dashboardPrivate URL of the published status page, reused on the next publish

Handoff

KeyTypeDefaultSet byWhat it means
handoff.statusenum: not-started, in-progress, donenot-startedhandoffClient handover progress
handoff.supportUntilYYYY-MM-DD or """"handoffEnd of the agreed support period
handoff.checklistobject { "<item>": { ... } }{}handoffFree-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.

KeyTypeDefaultSet byWhat it means
report.statusenum: not-asked, declined, sent, pendingnot-askedreport.py recorddeclined is never asked again; pending = approved but not sent yet
report.modeenum: anonymous, showcase, or """"report.pyWhat was sent. showcase adds the site name and domain, only with the client's permission
report.idUUID or """"report.pyRandom ID made once; a resend reuses it so duplicates can be dropped
report.sentAtISO timestamp or """"report.pyWhen the report went out
report.issueUrlhttps://… or """"report.pyThe GitHub issue it created (empty for an endpoint POST)
report.endpointas in the user config""youPer-site override
report.sourceTypeenum: gutenberg, php-templates, block-theme, elementor, divi, wpbakery, beaver-builder, bricks, oxygen, avada, otherunsetreportOptional override of the source type report.py detects

Tag keys

tracking.defaultExtraTags and tracking.tags use these keys.

KindKeys
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 directlyplausible, fathom, matomo, posthog, vercel-analytics
Without a tag manager, the code can also load directlygoogle-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

  • set validates before writing and refuses invalid values (exit 1). --force skips that; avoid it.
  • set refuses secrets: keys named like token, password, secret, apiKey or webhookUrl, and values that look like known token formats (GitHub, , OpenAI-style sk-, HubSpot pat-, JWTs, Slack, AWS, Google, 1Password, Doppler, private keys), at any depth. validate checks the same way, and show and get mask 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.provider becomes forms.destinations. show and get migrate in memory; set and validate rewrite the file and say so (validate --no-migrate only reports).
  • validate warns when hubspot is a form destination in form mode but the tracking code isn't loaded (no hubspot in tracking.analytics and no tracking.tags.hubspot.id): leads arrive without visit attribution. Add the tracking code, or use {"mode":"crm"} for the form in forms.hubspot.forms.
  • Exit codes: 0 ok, 1 invalid or missing key, 2 usage 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).

JSON
{
  "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" }
}