Simplify WordPress updates using these sequential WP CLI commands
Last updated • October 17th, 2019
Updating WordPress can really start to grind on me. Everyone is constantly releasing updates for their plugins and the core team are pushing to release more and more core updates all the time.
Seeing the update notification can be a real bummer.
So, to keep it easy, I just bang through all updates using a few WP CLI commands strung together into this nice one-liner;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This will go through and update all themes, plugins, and the WordPress core along with language updates for each. Yay!
I don’t actually use the whole command myself because typing that out each time would suck. Instead, I’ve set up an alias in my ~/.bashrc file to keep it easy. It looks like this;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters