Installation (WP-CLI)
Zie ook WP-CLI (commando's).
WordPress heeft een commandline interface, genaamd WP-CLI.
Installatie WP-CLI
Het project bestaat uit slechts één phar-bestand. Installatie is een fluitje van een cent. Ik plaats 't standaard in /opt
:
cd /opt sudo curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar sudo mv wp-cli.phar wp sudo chmod o+x wp
Test mbv. commando
wp --info
of alleen maar
wp
Update WP-CLI
Je kunt WP-CLI updaten middels
wp cli update
Dit werkte echter niet, omdat het proces geen schrijftoegang heeft tot /usr/local/bin
. sudo wp cli update
geeft een foutmelding, dat-ie 't pad niet kan vinden.
Andere oplossing: Opnieuw installeren. Zie elders.
Bronnen
- http://wp-cli.org/
- https://make.wordpress.org/cli/handbook/
- https://developer.wordpress.org/cli/commands/ - Alle commando's bij elkaar!
- https://github.com/oerdnj/deb.sury.org/issues/263 - Storing wp core download
- https://github.com/woocommerce/woocommerce/wiki/WC-CLI-Commands
- https://wordpress.stackexchange.com/questions/199674/using-wp-cli-can-i-not-query-pages-by-their-title