Before you make any changes, always take a backup of your site. This keeps your data safe if anything goes wrong.

Core Commands

WP-CLI commands where introduced since v3
All CoCart related commands are grouped into wp cocart command.
CommandDescription
wp cocart updateUpdates the CoCart database.
wp cocart versionReturns the version of CoCart installed.
wp cocart db-versionReturns the database version of CoCart installed.

Plus Commands

CommandDescription
wp cocart plus versionReturns the version of CoCart Plus you have installed.

Plugin Slugs

Use the following slugs to manage CoCart plugins with WP-CLI. The slugs are used in the command line to identify the specific plugin you want to work with.
PluginPlugin Slug
CoCart Core (Legacy)cart-rest-api-for-woocommerce
CoCart Corecocart
CoCart Pluscocart-plus
CoCart JWT Authenticationcocart-jwt-authentication

Frequently Asked Questions