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 Schlesser – https://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:
Command | Description |
---|---|
wp cocart update | Updates the CoCart database. |
wp cocart version | Returns the version of CoCart installed. |
wp cocart db-version | Returns the database version of CoCart installed. |