cmd: wp-cli
July 14, 2020 —
cmcipriano
install wordpress-cli from commandline
$: curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
make it executable
$: chmod +x wp-cli.phar
the put it on your binary folder
$: mv wp-cli.phar /usr/local/bin/wp
for additional help, here is the bash autocomplate
$: curl -O https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-completion.bash
make it an executable
$: chmod +x wp-completion.bash
then put it on your bash autocomplete directory
$: mv wp-completion.bash /usr/local/etc/bash_completion.d
Tags: terminal-commands, wordpress