Wordpress CLI
instalación
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar chmod +x wp-cli.phar mv wp-cli.phar /usr/local/bin/wp
comandos
wp plugin list --allow-root
wp plugin status --allow-root
wp plugin activate <PLUGIN> --allow-root
wp plugin deactivate <PLUGIN> --allow-root
wp cache flush
wp option get <PLUGIN>
alias
alias wp-cli="docker exec -u www-data -it contenedor_wp wp"