Skip to content

Upgrading the database using WP CLI

Mike Jolley edited this page Feb 27, 2019 · 2 revisions
Clone this wiki locally

When new versions of WooCommerce are released, often you'll be prompted to run a database upgrade. Whilst it's possible to do this through WP admin, advanced users may prefer to run these upgrades via the CLI, for example, on busy stores where timeouts could occur.

This page outlines how to install and begin using the WP CLI.

To update the database, use the following CLI command:

wp wc update

There are no extra arguments needed, and only the pending upgrades will be ran. Once the updates have been ran, the new version will be shown.

Terminal output