Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
wordpress [20/08/2022 - 05:47] – thommie4 | wordpress [17/08/2024 - 07:06] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
===== WP-CLI auf der Kommandozeile ===== | ===== WP-CLI auf der Kommandozeile ===== | ||
- | https:// | + | Quelle: [[https:// |
+ | ===== Installation ===== | ||
+ | |||
+ | **Download** | ||
+ | < | ||
curl -O https:// | curl -O https:// | ||
- | '' | + | </ |
+ | |||
+ | **Versionskontrolle** | ||
+ | < | ||
php wp-cli.phar --info | php wp-cli.phar --info | ||
+ | </ | ||
+ | |||
+ | **Ausführbar machen** | ||
+ | < | ||
chmod +x wp-cli.phar | chmod +x wp-cli.phar | ||
+ | |||
+ | </ | ||
+ | |||
+ | **verschieben, | ||
+ | < | ||
sudo mv wp-cli.phar / | sudo mv wp-cli.phar / | ||
- | '' | ||
- | Danach im jeweiligen WP root Dir starten | + | </ |
- | '' | + | **Danach im jeweiligen WP root Directory starten** |
+ | < | ||
sudo -u www-data wp | sudo -u www-data wp | ||
- | '' | ||
- | Help | + | </ |
- | '' | + | **Hilfe** |
+ | < | ||
sudo -u www-data wp help | sudo -u www-data wp help | ||
- | '' | ||
- | Core Update | ||
- | '' | + | </ |
+ | |||
+ | **Core Update einer WP Installation** | ||
+ | < | ||
sudo -u www-data wp core update | sudo -u www-data wp core update | ||
- | '' | + | |
+ | root@app6:/ | ||
+ | PHP Warning: | ||
+ | Updating to version 6.3.1 (de_DE)... | ||
+ | Herunterladen der Aktualisierung von https:// | ||
+ | Entpacken der aktualisierten Version ... | ||
+ | Success: WordPress updated successfully. | ||
+ | |||
+ | </ | ||
+ | |||
+ | User Management | ||
+ | |||
+ | < | ||
+ | < | ||
+ | or: wp user application-password < | ||
+ | or: wp user check-password < | ||
+ | or: wp user create < | ||
+ | [--user_nicename=< | ||
+ | ] [--rich_editing=< | ||
+ | or: wp user delete < | ||
+ | or: wp user generate [--count=< | ||
+ | or: wp user get < | ||
+ | or: wp user import-csv < | ||
+ | or: wp user list [--role=< | ||
+ | or: wp user list-caps < | ||
+ | or: wp user meta < | ||
+ | or: wp user remove-cap < | ||
+ | or: wp user remove-role < | ||
+ | or: wp user reset-password < | ||
+ | or: wp user session < | ||
+ | or: wp user set-role < | ||
+ | |||
+ | </ | ||
+ | |||
+ | Password reset | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||