WP-CLI: Fully updating a website with one command

How to fully update a website (WordPress core, plugins and translation) using the WordPress Command Line Interface

March 2019

"WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs and much more, without using a web browser."

The WP-CLI simplifies many repetitive processes during development and provides functionality which isn't available in the admin area.

This is a small one-liner which I find myself using all the time. It allows me to update a website locally (including core WordPress, all plugins and translations) without even logging in, and get to testing the updates as quickly as possible.

You must already have WP-CLI installed, either locally or globally. Open your terminal of choice and change directory to your WordPress install:

Here is some example output from running the command:

There are a number of options available for each of these commands. They can be seen here:

Thanks :)

Want to hire me for a project, or to fix something on your website?

Get in touch 😀