Every WordPress website we host has a WP-CLI console in the dashboard. You type a WP-CLI command, we run it on your website and show you exactly what WordPress answers. You do not need SSH or a terminal.
Where to find it
- Open Sites and choose the website.
- Open WordPress, then the Tools tab.
- The WP-CLI console card is there. Type the command without the leading
wp, for example plugin list, and press Run.
You need the permission to manage the website's hosting panel. The card lists every command it accepts, in two groups.
Commands that only read
Commands that look at your website without changing it run at once: for example plugin list, theme list, option get, user list, cron event list, db size and cache flush.
Commands that change your website
Commands that change your website run only after you confirm them. When you type one, the console asks "Run this change on the site?" and shows the exact command. Nothing is sent until you press Run the change; Cancel sends nothing.
The changes it accepts include installing, updating, activating and deactivating plugins and themes, changing options, posts, comments, terms, menus, widgets and user roles, running and scheduling cron events, deleting transients, turning maintenance mode on and off, optimising and repairing the database, and three that deserve care:
search-replace rewrites matching text everywhere in your database. The console does not take a backup first. For moving a site to a new address, use the Search and replace tool on the same Tools tab instead: it shows a preview and takes a safety backup before it rewrites anything. If you use the console, run it with --dry-run first (that only reads) and take a backup on the Backups page before the real run.
core update updates WordPress itself. The console does not take a backup first, so take one on the Backups page before you run it.
post delete removes a post. Without --force the post goes to the bin, where you can restore it in WordPress; with --force it is gone.
Every command you run, a read or a change, is recorded in Recent changes on the WordPress page, with who ran it.
Commands that are always refused
Some commands are refused whether you confirm or not, because they could run any code, read or overwrite the whole database, or reveal passwords: eval, eval-file and shell (running PHP), db query, db import, db export and the other raw database commands, config (your wp-config.php holds the database password), package, server, scaffold, and the commands that create users or manage passwords and sessions. Shell characters such as ;, | and backticks are refused too.
To run SQL, use the Database query card on the same Tools tab, which runs one checked statement and previews a change before it commits. To add a user, use the Users tab.
If a command is refused
The console tells you why: the command is not on its list, it is always refused, or it changes your website and you have not confirmed it yet.