Base de conhecimento

Use the WP-CLI console on your WordPress website

Run WP-CLI commands on your WordPress site from the dashboard. Reads run at once, changes after you confirm, and every command is recorded. Raw SQL is refused.

Zinn®, o nosso viking, a ler a sua lista de verificação ao lado de um índice de artigos com um aberto.

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

  1. Open Sites and choose the website.
  2. Open WordPress, then the Tools tab.
  3. 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.

Este artigo ainda não foi traduzido para o seu idioma, pelo que está a ler a versão em inglês.

Mais recentes do blogue

O que temos escrito sobre alojamento, SEO e gestão de sites em escala.

SEO e Link Building a partir da Camada de Alojamento: A Visão de um Operador em 2026

Como o alojamento molda a indexação e a equidade de ligações em 2026: manter páginas indexadas, avaliar domínios antigos antes de construir sobre eles, criar ligações sem rasto de pegada e uma perspetiva realista sobre o que a infraestrutura pode e não pode fazer pelo SEO.

Ler o artigo →

Tornar o WordPress Rápido e Seguro: Uma Lista de Controlo de Desempenho e Plugins

Uma lista de controlo prática para um WordPress rápido e seguro: cache ao nível do servidor, uma cache de objetos por site, os poucos plugins que vale a pena utilizar, manter a infraestrutura atualizada e as páginas do WooCommerce que nunca deve colocar em cache.

Ler o artigo →

Como escolher alojamento web gerido em 2026: Guia do comprador

O que realmente separa um bom alojamento gerido de uma máquina barata com um painel de controlo — migrações, cópias de segurança, isolamento, colocação em cache real e escalabilidade genuína — e como avaliá-lo antes de se comprometer.

Ler o artigo →

Ler o blogue →

Ainda com dúvidas?

O suporte está incluído em todos os planos, o apoio está disponível 24 horas por dia e pode escrever-nos em qualquer um dos nossos 59 idiomas — respondemos-lhe no seu.

Contactar o suporte Todos os artigos