Wp-cli: mudanças entre as edições
De MochilaWiki
Ir para navegaçãoIr para pesquisar
Sem resumo de edição |
|||
| Linha 4: | Linha 4: | ||
chmod +x wp-cli.phar | chmod +x wp-cli.phar | ||
mv wp-cli.phar /usr/local/bin/wp | mv wp-cli.phar /usr/local/bin/wp | ||
</source> | |||
== instalando um plugin == | |||
<source lang="bash"> | |||
wp plugin install hello-dolly | |||
</source> | </source> | ||
Edição das 13h52min de 24 de novembro de 2015
baixando wp-cli
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
instalando um plugin
wp plugin install hello-dolly
atualiza o core
php wp-cli.phar --path=/home/jmcultural/www/ core update
atualiza todos os plugins
php wp-cli.phar --path=/home/jmcultural/www/ plugin update --all
Referências