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 8: Linha 8:
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>
== altera o domínio ==
<source lang="bash">
wp search-replace http://enderecovelho.com.br/ http://endereconovo.net/ --allow-root
</source>
</source>



Edição das 17h58min de 3 de fevereiro de 2016

dicas

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

altera o domínio

wp search-replace http://enderecovelho.com.br/ http://endereconovo.net/ --allow-root

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