跳转到主要内容

WooCommerce CLI Commands

Overview

This document serves as a comprehensive reference for the WooCommerce Command Line Interface (WC-CLI) commands. It includes syntax, options, and brief descriptions for each command. These commands are applicable for WooCommerce version 3.0.0 and later.

General Command Structure

The general syntax for WC-CLI commands is:

wp wc [command] [options]

For detailed help on any specific command, use:

wp wc [command] --help

Commands

Command Description
wc blueprint Imports and exports WooCommerce Blueprints.
wc com Interacts with extensions from the WooCommerce.com marketplace via CLI.
wc customer Manage WooCommerce customer resources.
wc customer_download Manage WooCommerce customer download resources.
wc hpos Commands for managing High-Performance Order Storage (HPOS). For detailed examples, see HPOS CLI tools.
wc order_note Manage WooCommerce order note resources.
wc palt Commands for managing the product attributes lookup table. The table stores denormalized product attribute term data used to speed up catalog filtering.
wc payment_gateway Manage WooCommerce payment gateway resources.
wc product Manage WooCommerce product resources.
wc product_attribute Manage WooCommerce product attribute resources.
wc product_attribute_term Manage WooCommerce product attribute term resources.
wc product_cat Manage WooCommerce product category resources.
wc product_review Manage WooCommerce product review resources.
wc product_shipping_class Manage WooCommerce product shipping class resources.
wc product_tag Manage WooCommerce product tag resources.
wc product_variation Manage WooCommerce product variation resources.
wc setting Manage WooCommerce setting resources.
wc shipping_method Manage WooCommerce shipping method resources.
wc shipping_zone Manage WooCommerce shipping zone resources.
wc shipping_zone_location Manage WooCommerce shipping zone location resources.
wc shipping_zone_method Manage WooCommerce shipping zone method resources.
wc shop_coupon Manage WooCommerce shop coupon resources.
wc shop_order Manage WooCommerce shop order resources.
wc shop_order_refund Manage WooCommerce shop order refund resources.
wc tax Manage WooCommerce tax resources.
wc tax_class Manage WooCommerce tax class resources.
wc tool Runs WooCommerce system status tools from the CLI.
wc update Runs all pending WooCommerce database updates.
wc webhook Manage WooCommerce webhook resources.
wc webhook_delivery Manage WooCommerce webhook delivery resources.