Phil Kurth
/ Tips /

Simplify WordPress updates using these sequential WP CLI commands

Last updated • 17 October 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;


wp plugin update --all && wp language plugin update --all && wp theme update --all && wp language theme update --all && wp core update --force && wp language core update

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;


alias wp-update-all="wp plugin update --all && wp language plugin update --all && wp theme update --all && wp language theme update --all && wp core update --force && wp language core update"

With the alias in place, all I need to do is enter wp-update-all and hit the return key…then wait, of course.

Got a project in mind?
Let's talk.

Every project starts with a conversation about what you need. You hear back the same or next business day. If I'm not the right fit, I'll say so. If I am, you get a fixed quote before any work starts.

Phil Kurth, web designer and developer in Geelong