Skip to content

Instantly share code, notes, and snippets.

@megane9988
Last active August 17, 2016 01:18
Show Gist options
  • Save megane9988/db363f247c0c02f0dd75771947459a25 to your computer and use it in GitHub Desktop.
Save megane9988/db363f247c0c02f0dd75771947459a25 to your computer and use it in GitHub Desktop.
WP CLIを利用して、コア、プラグイン、テーマ、翻訳ファイルをアップデートする ref: http://qiita.com/megane9988/items/9505cf091e8ee102025f
$ wp cli version
WP-CLI 0.24.1
wp cli update
$ wp db export hogehoge.sql
wp core update && wp plugin update --all && wp theme update --all && wp core language update
$ wp search-replace '元のドメイン' '置換後のドメイン' --export=hogehoge.sql
$ wp core verify-checksums
Success: WordPress install verifies against checksums.
git reset --hard HEAD && wp core update && wp plugin update --all && wp theme update --all && wp core language update && git add -A && git commit -m "update all" && git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment