Skip to main content

Using the WP-CLI terminal

Run WP-CLI commands against your site straight from Console.

Written by Daniel

WP-CLI is the command-line tool for WordPress. Console gives you a built-in terminal, so you can run WP-CLI commands without connecting over SSH.


​

Open the terminal

Open your site, then under WordPress select WP-CLI Terminal.


​

The WP-CLI Terminal


​

Run a command

Type a WP-CLI command at the wp> prompt and press Enter. You do not need to type the leading wp, just the command itself, for example plugin list or cache flush. The output appears above the prompt. Use the up and down arrow keys to recall earlier commands.


​

Clear the screen

Use the Clear button to empty the terminal output.


​

A word of care

WP-CLI is powerful. Double-check a command before running it, especially anything that changes or deletes data.

For safety, the Console terminal does not run every WP-CLI command. Commands that open a shell or run arbitrary code or SQL, such as db, eval and shell, are refused, and so are some global flags such as --path and --url. If you need those, connect over SSH and run WP-CLI there.

Did this answer your question?