For developers and hosts who manage sites from the command line. All commands start with wp wpiseo.
| Command | What it does |
|---|---|
wp wpiseo info | Version, database version and module states |
wp wpiseo module-list | List modules |
wp wpiseo module-enable local | Turn a module on (module-disable turns it off) |
wp wpiseo variables | List template variables |
wp wpiseo template "%title% %sep% %sitename%" --post=1 | Show what a template produces |
wp wpiseo redirect-list | List redirects |
wp wpiseo redirect-add /old-page /new-page | Add a redirect (--status=410, --regex) |
wp wpiseo redirect-delete <id> | Delete redirects |
wp wpiseo redirect-import <file-or-plugin> | Import redirects from a CSV file or another plugin |
wp wpiseo redirect-export | Print all redirects as CSV |
wp wpiseo import yoast | Import from yoast, rankmath, aioseo, seopress, tsf or slimseo (--overwrite, --skip-settings) |
wp wpiseo sitemap-flush | Rebuild sitemaps on the next request |
wp wpiseo indexnow <url> | Submit URLs to IndexNow |
wp wpiseo analyze 42 | Run the basic SEO checks on a post |
wp wpiseo links-rebuild | Rebuild the internal link index |
wp wpiseo gsc-sync | Sync Search Console data now |
Run wp help wpiseo <command> for all options.
wp wpiseo redirect-add /old-page /new-page --status=301