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/
All CoCart related commands are grouped into wp cocart command. The available commands (as of CoCart v3.0.0) are:
|Updates the CoCart database.|
|Returns the version of CoCart installed.|
|Returns the database version of CoCart installed.|