Skip to content
Select theme
Get Started

WP-CLI Commands

Summarize with AI

WP-CLI is a way to manage WordPress from the command line (a terminal) instead of clicking through the dashboard. If you or your host use it, WP PowerSuite adds a set of wp powersuite commands for the same things you’d normally do in WP PowerSuite -> Modules and its tools - checking your setup, turning modules on and off, saving your settings, clearing caches, cleaning the database, managing redirects, finding broken links, and creating backups.

Everything here is optional. If you manage a single site from wp-admin, you never need to open the command line.

WP-CLI is aimed at developers, agencies, and anyone who automates WordPress. It is handy when you want to:

  • Set up new sites the same way every time.
  • Manage many sites without logging into each dashboard.
  • Add WP PowerSuite steps to a deployment or maintenance script.
  • Your server or host needs WP-CLI installed. Most managed WordPress hosts include it - ask your host if you are not sure.
  • WP PowerSuite must be active on the site.
  • Running several sites on one WordPress install (multisite)? Add --url=https://example.com to any command to point it at one site.

To confirm the commands are available:

Terminal window
wp powersuite status
wp help powersuite

The first command prints a quick summary of your site. The second lists every command WP PowerSuite adds.

Terminal window
wp powersuite status [--format=table|json|yaml]

Prints a summary of your site: plugin, WordPress, and PHP versions, your license status, how many modules are on, and other basics. Nothing sensitive is shown.

Terminal window
wp powersuite module list [--enabled] [--disabled] [--category=<name>]
wp powersuite module get <module-name>
wp powersuite module enable <module-name>... [--all] [--include-sensitive]
wp powersuite module disable <module-name>... [--all]
  • enable and disable are safe to run again - if a module is already in the state you asked for, nothing breaks.
  • Pro modules need WP PowerSuite Pro installed and an active license.
  • --all turns on the everyday modules but skips the sensitive ones (like changing your login address, maintenance mode, or email delivery) unless you add --include-sensitive.
  • WP PowerSuite runs the same safety checks as the dashboard, so it will not switch on something that clashes with a module you already have active.
Terminal window
# Turn on two modules at once
wp powersuite module enable redirect-manager broken-link-checker
# See which modules are currently on
wp powersuite module list --enabled
Terminal window
wp powersuite settings export [--file=<file>]
wp powersuite settings import <file> [--dry-run] [--replace]

Save all of your WP PowerSuite settings to a file, then load them onto another site or keep the file as a backup.

  • Exported files never include secrets like license keys or passwords.
  • Add --dry-run to preview an import without changing anything.
  • Imports are merged with your current settings by default. Add --replace to overwrite them instead.
Terminal window
wp powersuite cache clear [--all]

Clears WP PowerSuite’s own temporary data. Add --all to also clear WordPress’s full cache for the whole site - you will see a warning first.

Terminal window
wp powersuite database cleanup [--dry-run] [--include-caution] [--yes]

Removes clutter that WP PowerSuite can safely clean up. Use --dry-run to see what would be removed without deleting anything. More aggressive tasks only run when you add --include-caution, and deleting asks for confirmation (or add --yes for unattended runs).

Terminal window
wp powersuite broken-links scan [--post-type=<types>] [--limit=<number>]
wp powersuite broken-links status

Scans your posts and pages for links that no longer work and prints a report. status tells you whether a scan is already running.

Terminal window
wp powersuite redirects list
wp powersuite redirects export <file>
wp powersuite redirects import <file> [--dry-run]

List, export, and import your redirects as a CSV file. Rows that are invalid or duplicated are skipped, and --dry-run lets you preview an import before it is saved.

Terminal window
wp powersuite backup create [--type=full|database|files] [--label=<label>]
wp powersuite backup list

Creates a full, database-only, or files-only backup - the same kind your scheduled backups make.

Terminal window
wp powersuite cron list
wp powersuite cron run <task>

Lists the background tasks WP PowerSuite schedules, and lets you run one right away. Only WP PowerSuite’s own tasks are affected.

  • Every command reports success or failure, so it fits neatly inside deployment or maintenance scripts.
  • Add --format=json when another program needs to read the output.
  • For unattended runs, use --dry-run to preview and --yes to skip confirmations.

Every module can be turned on or off by name (wp powersuite module enable|disable|get <module-name>). A few modules add extra commands of their own:

Do I need to install anything to use these commands?

No. As long as WP-CLI is installed on your server and WP PowerSuite is active, the wp powersuite commands are ready to use. Type wp powersuite status to check.

Do the commands work if I run several sites on one install?

Yes. On a WordPress multisite network, add --url=https://example.com to any command to point it at one site.

Will my license key or passwords show up in the output?

No. WP PowerSuite hides secrets such as license keys, API keys, and passwords from the status output and from exported settings files.

Which modules have their own commands?

Redirect Manager, Broken Link Checker, Database Cleanup, and Backup & Restore. Every other module is turned on or off with wp powersuite module enable, disable, or get followed by its name.

Can I restore a backup from the command line?

No. For safety, restoring a backup is only available in the dashboard, where there are extra confirmation steps.