Select your language

What is WP-CLI?

WP-CLI (WordPress - Command Line Interface) is a command line tool for WordPress. It allows you to manage WordPress installations via the command line without having to log in to WordPress in your browser. This is particularly useful if you have multiple WordPress websites or manage them as a webmaster. With WP-CLI, you can also install additional scripts to further automate WordPress.

WP-CLI is already pre-installed on all Hostpoint servers. To use WP-CLI, you need to connect to your web hosting via SSH. You can find out how to do this in our article on setting up an SSH connection. You can then execute commands via WP-CLI in your WordPress directory using the console.

Useful commands

CommandExplanation
wp core versionDisplays the currently installed WordPress version
wp core check-updateChecks if a WordPress update is available
wp core updateUpdates the WordPress core to the latest version
wp plugin listLists all installed plugins including status (active/inactive) and version
wp plugin update --allUpdates all installed plugins to the latest version
wp plugin activate <slug> Activates a specific plugin
(replace with the plugin slug, e.g., contact-form-7)
wp plugin deactivate <slug> Deactivates a specific plugin
(replace with the plugin slug, e.g., contact-form-7)
wp theme list Lists all installed themes and indicates the active theme
wp theme activate <slug>   Activates a different theme
wp option get home Displays the currently configured URL of your WordPress website
(home URL)
wp option update home <url>Changes the currently configured URL of your WordPress website
(home URL)
wp option update siteurl <url>Changes the URL of your WordPress installation (backend)
wp user listLists all registered users
wp user update <user id> --user_pass=<password>   Sets a new password for a specific user
(replace with the user ID and new password)
wp db export Creates a database backup as an SQL file
wp cache flush Clears the WordPress cache

Further information on WP-CLI

Please use this form only to provide feedback on the above guide.
For support requests please use this form instead.

 

 

© 2001 - Hostpoint AG
Cookie

Wir verwenden Cookies  🍪

We use Cookies  🍪

Nous utilisons des cookies  🍪

Utilizziamo dei cookie  🍪

Die digitalen Auftritte von Hostpoint (Website, Control Panel, Support Center etc.) verwenden Cookies. Diese werden dazu verwendet, um Daten über Besucherinteraktionen zu sammeln. Wenn Sie auf «Akzeptieren» klicken, stimmen Sie der Verwendung dieser Cookies für Werbezwecke, Website-Analyse und Support zu. Gewisse essenzielle Cookies sind jedoch für eine ordnungsgemässe Funktion dieser Seiten unerlässlich und können deshalb nicht deaktiviert werden. Auch ohne Ihre Zustimmung können gewisse Daten in anonymisierter Form für statistische Zwecke und zur Verbesserung unserer Websites verwendet werden. Bitte beachten Sie unsere Datenschutzerklärung.

Hostpoint's digital presences (website, Control Panel, Support Center, etc.) use cookies. These are used to collect data on visitor interactions. If you click “Accept”, you agree to the use of these cookies for advertising purposes, website analysis and support. However, certain cookies are essential for the proper functioning of these pages and therefore cannot be disabled. Even without your consent, certain data may be used in anonymized form for statistical purposes and to improve our websites. Please note our Privacy policy.

Le sites Web de Hostpoint (site Web, Control Panel, Centre d'assistance, etc.) utilisent des cookies. Ces cookies servent à collecter des données sur les interactions des visiteurs. En cliquant sur «Accepter», vous consentez à l’utilisation de ces cookies à des fins de publicité, d’analyse du site Web et d’assistance. Certains cookies essentiels sont cependant indispensables au bon fonctionnement de notre sites Web et ne peuvent donc pas être désactivés. Même sans votre consentement, certaines données peuvent être utilisées sous forme anonymisée à des fins statistiques et pour améliorer notre sites Web. Veuillez prendre connaissance de notre Déclaration de protection des données.

Le presenze digitali di Hostpoint (sito web, Pannello di controllo, Support Center, ecc.) utilizzano i cookie. Questi vengono utilizzati per raccogliere dati sulle interazioni dei visitatori. Facendo clic su «Accetta», acconsente all’utilizzo di questi cookie per scopi pubblicitari, di analisi del sito web e di supporto. Alcuni cookie essenziali sono tuttavia indispensabili per il corretto funzionamento di questi siti web e pertanto non possono essere disattivati. Anche senza il Suo consenso, determinati dati potrebbero essere utilizzati in forma anonima per fini statistici e per l’ottimizzazione dei nostri siti web. Si prega di tenere conto della nostra Dichiarazione per la pivacy.

Ablehnen
Decline
Refuser
Rifiuta
Akzeptieren
Accept
Accepter
Accetta