Select your language

WP-CLI is a command line tool for WordPress. With this you can manage multiple WordPress installations without logging in through your Web browser. With WP-CLI you can also install additional scripts in order to further automate your WordPress installations.

Installation

You need to be logged into your Webhosting via SSH in order to complete the following steps.

Here you will find instructions on how to set up and use SSH.

You can use curl to download the latest version:

Then you need to make the file executable:

chmod +x wp-cli.phar

Then create the bin folder:

mkdir ~/bin

And move the file:

mv wp-cli.phar ~/bin/wp

In order to use WP-CLI in your Webhosting, you need to adjust your Bash profile:

vim .profile

Insert this line anywhere in the file:

export PATH=$PATH:$HOME/bin

To save and close the file, press the Escape key, then enter ":wq" (without the quotation marks) and press Enter.

:wq

Then, in order for the changes to take effect, you need to reload the Bash profile:

source ~/.profile

You can now test WP-CLI with this command: 

wp --info

If everything is correctly configured, you should get something like this:


OS: FreeBSD 12.3-RELEASE-p7 FreeBSD 12.3-RELEASE-p7 releng/12.3-n234209-e134a96fd6f HOSTPOINT amd64
Shell: /usr/local/bin/bash
PHP binary: /usr/local/php74/bin/php
PHP version: 7.4.33
php.ini used: /usr/local/php74/etc/php.ini
MySQL binary: /usr/local/bin/mysql
MySQL version: mysql Ver 15.1 Distrib 10.3.37-MariaDB, for FreeBSD12.3 (amd64) using readline 5.1
SQL modes: 
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /home/USER/bin
WP-CLI packages dir:
WP-CLI cache dir: /home/USER/.wp-cli/cache
WP-CLI global config: 
WP-CLI project config: 
WP-CLI version: 2.7.1 
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