sales
WooCommerce CLI for Headless Automation
Use the WooCommerce CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write Bearer token auth
WooCommerce CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The WooCommerce CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# WooCommerce CLI for Headless Automation
kosmokrator integrations:configure woocommerce --set access_token="$WOOCOMMERCE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call woocommerce.woocommerce_list_products '{"per_page":1,"page":1,"search":"example_search","status":"example_status","category":"example_category","sku":"example_sku","orderby":"example_orderby","order":"example_order"}' --json Discovery Before Execution
Agents and scripts can inspect WooCommerce docs and schemas before choosing a function.
kosmo integrations:docs woocommerce --json
kosmo integrations:docs woocommerce.woocommerce_list_products --json
kosmo integrations:schema woocommerce.woocommerce_list_products --json
kosmo integrations:search "WooCommerce" --json
kosmo integrations:list --json Useful WooCommerce CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
woocommerce.woocommerce_list_products | Read | per_page, page, search, status, category, sku, orderby, order | List products from the WooCommerce catalog. Supports pagination, filtering by name or SKU, and including variants/images. |
woocommerce.woocommerce_get_product | Read | id | Get a single product from the WooCommerce catalog by its ID. Returns full product details. |
woocommerce.woocommerce_create_product | Write | name, regular_price, type, sku, description, short_description, weight, categories, manage_stock, stock_quantity, status, images | Create a new product in the WooCommerce catalog. Requires name and regular_price. Supports type (simple, grouped, external, variable), SKU, description, and more. |
woocommerce.woocommerce_list_orders | Read | per_page, page, status, customer, after, before, orderby, order | List orders from the WooCommerce store. Supports filtering by status, customer, and pagination. |
woocommerce.woocommerce_get_order | Read | id | Get a single order from the WooCommerce store by its ID. Returns full order details including line items and totals. |
woocommerce.woocommerce_list_customers | Read | per_page, page, search, orderby, order | List customers from the WooCommerce store. Supports filtering by name or email and pagination. |
woocommerce.woocommerce_get_current_user | Read | none | Get the system status from WooCommerce. Use this to verify the API connection is working and retrieve store information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.