docs/wc-cli/using-wc-cli.md
This guide aims to assist beginners in using WooCommerce CLI (WC-CLI) for managing WooCommerce stores via the command line.
wp wc --info
The general syntax for WC-CLI commands is:
wp wc [command] [options]
For detailed help on any specific command, use:
wp wc [command] --help
To list all products in your WooCommerce store:
wp wc product list
To create a new product:
wp wc product create --name="New Product" --type="simple" --regular_price="19.99"
To update an existing product (e.g., product ID 123):
wp wc product update 123 --regular_price="24.99"
To delete a product (e.g., product ID 123):
wp wc product delete 123 --force
For a complete list of WC-CLI commands, check out our WC-CLI commands documentation