Wp-cli: mudanças entre as edições

De MochilaWiki
Ir para navegaçãoIr para pesquisar
Sem resumo de edição
Sem resumo de edição
Linha 19: Linha 19:
<source lang="bash">
<source lang="bash">
php wp-cli.phar --path=/home/jmcultural/www/ plugin update --all
php wp-cli.phar --path=/home/jmcultural/www/ plugin update --all
</source>
== listando temas ==
<source lang="bash">
wp theme list --allow-root
</source>
== definido um tema como padrão ==
<source lang="bash">
wp theme activate rttheme17 --allow-root
</source>
== remove um tema ==
<source lang="bash">
wp theme delete twentyfifteen --allow-root
</source>
</source>


Referências
Referências
* http://wp-cli.org/
* http://wp-cli.org/

Edição das 11h16min de 1 de dezembro 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

listando temas

wp theme list --allow-root

definido um tema como padrão

wp theme activate rttheme17 --allow-root

remove um tema

wp theme delete twentyfifteen --allow-root

Referências