WP-CLI Core Commands

CoCart CLI offers the ability to manage CoCart via the command-line, using WP CLI. The documentation here covers the version of WC CLI that started shipping in CoCart v3.0.0 and later.

What is WP-CLI?

For those who have never heard before WP-CLI, here’s a brief description extracted from the official website.

WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser.

Alain Schlesserhttps://wp-cli.org/

CoCart Commands

All CoCart related commands are grouped into wp cocart command. The available commands (as of CoCart v3.0.0) are:

wp cocart updateUpdates the CoCart database.
wp cocart versionReturns the version of CoCart installed.
wp cocart db-versionReturns the database version of CoCart installed.

Was this helpful to you?