Skip to main content

Configuration

Config File Location

~/.wp-seo-ops/config.json — JSON file created by seo-ops config init.

Default Config

{
"version": "0.1.0",
"default_path": "",
"seo_plugin": "auto",
"output_format": "table",
"color": true,
"ai": {
"provider": "none",
"model": ""
},
"indexing": {
"indexnow_key": "",
"key_location": "",
"default_engine": "indexnow"
},
"gsc_credentials_path": "",
"gsc_site_url": ""
}

Commands

seo-ops config init

Creates default config file. Safe to re-run — won't overwrite existing config.

seo-ops config init
# Created config: /home/user/.wp-seo-ops/config.json

seo-ops config get <key>

Read a config value. Nested keys use dot notation.

seo-ops config get default_path
# /var/www/html

seo-ops config get indexing.indexnow_key
# (value or empty)

seo-ops config set <key> <value>

Write a config value.

seo-ops config set default_path /var/www/html
seo-ops config set indexing.default_engine indexnow

Config Keys Reference

KeyTypeDefaultDescription
versionstring"0.1.0"Config schema version
default_pathstring""Default WordPress path used when --path is omitted
seo_pluginstring"auto"Force a specific SEO plugin or auto-detect
output_formatstring"table"Default output format
colorbooleantrueEnable colored terminal output
ai.providerstring"none"AI provider for content generation
ai.modelstring""AI model for content generation
indexing.indexnow_keystring""IndexNow API key
indexing.key_locationstring""Path to IndexNow key file
indexing.default_enginestring"indexnow"Default indexing engine
gsc_credentials_pathstring""Path to GSC service account JSON
gsc_site_urlstring""Google Search Console site URL

Environment Variables

VariableDescription
WP_SEO_OPS_CONFIGOverride config file path
WP_SEO_OPS_DEBUGEnable debug mode
WP_SEO_OPS_NO_COLORDisable terminal colors