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 website 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 in this browser.
  • 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.

Team members who were given access to only some websites can’t run some commands that change the database or the whole site at once.

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.