WP-CLI auf Webhosting installieren
WP-CLI auf Webhosting installieren
Aktualisiert am 27. Feb. 2024
War dieser Artikel hilfreich?
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
PHP binary: /opt/cyon/php55/usr/bin/php
PHP version: 5.5.30
php.ini used: /opt/cyon/php55/etc/php-cli.ini
WP-CLI root dir: phar://wp-cli.phar
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 0.21.1
PATH=$PATH:$HOME/bin
export PATH
curl -O https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-completion.bash
wp core config --dbname={Datenbankname} --dbuser={Anmeldename} --dbpass='{Passwort Anmeldename}'
wp core install --url={deine Domain} --title={Titel der Website} --admin_user={Anmeldename} --admin_password='{Passwort für Anmeldename}' --admin_email={E-Mail-Adresse}
Success: Showing 10 of 280 plugins.
+---------------------------+----------------+--------+
| name | slug | rating |
+---------------------------+----------------+--------+
| Yoast SEO | wordpress-seo | 82 |
+----------------------+----------+-----------+---------+
| name | status | update | version |
+----------------------+----------+-----------+---------+
| akismet | active | none | 3.1.7 |
| hello | inactive | none | 1.6 |
| wordpress-seo | inactive | none | 3.0.7 |
+----------------------+----------+-----------+---------+
wp post create --post_status=publish --post_title="Erster Post von der CLI" --edit
#!/bin/bash
declare -a sites=('/home/<Anmeldename>/public_html/site1' '/home/<Anmeldename>/public_html/site2' '/home/<Anmeldename>/public_html/site3')
for site in "${sites[@]}";
do
wp --path=$site core update
done
wp search-replace 'http://oliverorange.ch' 'https://oliverorange.ch'
wp search-replace --dry-run 'http://oliverorange.ch' 'https://oliverorange.ch'
NAME
wp plugin
DESCRIPTION
Manage plugins.
SYNOPSIS
wp plugin <command>
SUBCOMMANDS
activate Activate a plugin.
deactivate Deactivate a plugin.
delete Delete plugin files.
get Get a plugin.
install Install a plugin.
...
Kategorien
- WordPress
Artikel teilen
Verwandte Artikel
Was dir auch helfen könnte
Wähle den für dich passenden Kanal
SSH-Verbindung mit PuTTY herstellen
PuTTY ist ein Open Source SSH-Programm für Windows und kann kostenfrei unter https://www.chiark.greenend.org.uk/...
WordPress installieren
WordPress ist eines der meist verbreiteten CMS für das Erstellen und Verwalten von Blogs, Websites oder Webshops...
SSH
Secure Shell (SSH) bezeichnet sowohl ein Netzwerkprotokoll als auch entsprechende Programme, mit deren Hilfe man...
Kommandozeile
Die Kommandozeile, auch Command-Line Interface (CLI) genannt, ist eine textbasierte Ein-/Ausgabe-Schnittstelle d...
PHP-Standardversion für die Kommandozeile festlegen
Viele PHP-Anwendungen setzen zeitnah die aktuellste PHP-Version voraus. Führst du PHP-Scripts direkt in der Komm...

