Skip to content

WP-CLI terminal

WP-CLI is WordPress’s command-line tool. The panel has a terminal for it, so you can run commands without an SSH client. Open the application and go to WordPress › WP-CLI terminal.

  1. Type the command in the box at the bottom, for example plugin list --status=active. The wp at the start is optional.
  2. Press Enter or click Run.

The output appears above, marked ok or with the exit status, and how long the command took. Output stays until you clear it.

Commands run as the website’s own user, inside its files, with the website’s PHP version.

The buttons above the output run common commands in one click:

Button Runs
WordPress version wp core version
Plugins wp plugin list
Themes wp theme list
Users wp user list
Home URL wp option get home
Scheduled events wp cron event list
Table sizes wp db size --tables
Flush object cache wp cache flush

All of them only read, except Flush object cache.

  • ↑ and ↓ bring back earlier commands. The panel remembers your last 50 per website while the browser tab stays open. Commands that look like they contain a password, key or token are not remembered.
  • Ctrl+L or Clear output clears the screen.

The terminal runs one WP-CLI command at a time, without a shell. You can’t chain or pipe commands or use other shell features, and interactive commands aren’t available.

These commands aren’t available in the terminal: eval, eval-file, shell, package, cli and db cli. Exports to the screen (db export - or export --stdout) aren’t available either: export to a file instead.

Collaborators can’t run db commands or site empty, and can run search-replace only with --dry-run. Ask the account owner or a super admin to run those.

WP-CLI changes the website directly. Commands such as plugin delete, db import or search-replace can’t be undone from the terminal. Create a backup first, or try the command on a staging copy.