WP-CLI commands
WP-CLI commands
A small set of operational WP-CLI commands ship in v1.0 — focused on diagnostics + recovery. The broader command surface (licence management, module enable/disable, SEO bulk ops) lands in v1.1.
v1.0 — available now
Status
wp asteris statusPrints plugin version, active modules, licence state, and Safe Mode state. Run this first when diagnosing any issue.
Safe Mode (recovery path)
Safe Mode suspends ALL Asteris modules without deactivating the plugin or touching the licence. Use it when a module has broken wp-admin or you want to isolate a conflict.
wp asteris safe-mode enable # persistent — modules suspended until disabledwp asteris safe-mode disable # back to normalwp asteris safe-mode status # is it active?wp asteris safe-mode token # get the one-shot URL bypass tokenwp asteris safe-mode rotate-token # rotate if the token leakedSee the Recovery guide for the full step-by-step.
v1.1 — planned
The rest of this page documents the intended scope so agency operators can plan + give us feedback on which commands matter most before we build.
Why v1.1 not v1.0
WP-CLI command surface is a build-vs-buy call. For solo store owners, the WP admin UI covers every operation. For agencies managing 5–500 client sites, WP-CLI is the only way to automate repetitive tasks at scale. We’re targeting agencies as a v1.1 buyer cohort, so WP-CLI lands in v1.1 alongside the multisite support those same agencies need.
Planned commands (v1.1)
Licence management
wp asteris license activate <key>wp asteris license deactivatewp asteris license statuswp asteris license transfer <new-domain>Module management
wp asteris modules listwp asteris modules enable <module-id>wp asteris modules disable <module-id>wp asteris modules status <module-id>SEO module (bulk operations)
wp asteris seo generate-meta --batch=100 # uses AI Suite to fill empty meta titles + descriptionswp asteris seo rebuild-sitemapwp asteris seo audit # report on products missing SEO dataCoupons module
wp asteris coupons listwp asteris coupons preview <code> --subtotal=100 --qty=2 # CLI version of the metabox preview simulatorwp asteris coupons migrate-from-wc --dry-run # bulk-migrate plain WC coupons to Asteris managementPDF Invoices (bulk operations)
wp asteris pdf bulk-generate --orders=$(wp wc shop_order list --status=completed --format=ids)wp asteris pdf regenerate <order-id>Migration
wp asteris migrate from-yoast --dry-runwp asteris migrate from-yith --dry-runwp asteris migrate from-iconic --dry-run# etc — one subcommand per /migrate/from-X marketing pageDiagnostic
wp asteris doctor # runs the same self-check as Asteris admin → Statuswp asteris debug-log --tailwp asteris export-settings # JSON dump of all Asteris module settings, for cloning between siteswp asteris import-settings <file>What’s NOT planned
- Customer-data commands. Asteris doesn’t expose WP-CLI shortcuts for personal data export/erase — use WP core’s
wp user personal-data-exportandwp user personal-data-erasewhich already invoke Asteris’s exporters/erasers (see Data handling). - Direct module-internal-state commands. WP-CLI is for operations a human admin would do, not internal plumbing. If you need to manipulate module state directly, use the public hooks documented in API reference.
Influence the v1.1 scope
If you operate at agency scale and there’s a command you need that’s not listed, email [email protected] with your use case before we build v1.1. The list above is what we think agencies need; ground-truth feedback from real agency operators will reshape it.
See also
- API reference — programmatic extension points (PHP hooks + filters)
- Roadmap — v1.1 timeline
- WP-CLI’s own command reference — standard core commands you can use today