WooCommerce
The robomotion woocommerce CLI connects to WooCommerce stores for ecommerce management. It manages products with variations, handles orders and fulfillments, administers customers and coupons, and organizes product categories — covering the full WordPress-based store workflow.
When to use
- Create, update, list, or delete products and variations
- Manage orders — create, update status, and track
- Search and manage customer records and coupons
- Organize product categories and tags
Prerequisites
robomotionCLI installed- Package installed:
robomotion install woocommerce - WooCommerce store URL, consumer key, and consumer secret configured via Robomotion vault
IMPORTANT: Session Mode Required for Multi-Step Operations
Each CLI command runs as a separate process — connection IDs from connect do NOT persist across calls.
You MUST use --session on connect and pass --session-id to all subsequent commands.
Workflow
- Install (once):
robomotion install woocommerce - Connect with session:
robomotion woocommerce woocommerce_connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion woocommerce woocommerce_list_products --client-id "<client-id>" --session-id "<session-id>" --output json - Disconnect when done:
robomotion woocommerce woocommerce_disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion woocommerce woocommerce_connect --session --output jsonConnects to a WooCommerce store and returns a client IDrobomotion woocommerce woocommerce_disconnect --client-id --session-id "<session-id>" --output jsonCloses the WooCommerce connection and releases resourcesrobomotion woocommerce create_product --client-id --product-name --regular-price --data [--product-type] [--status] [--60] --session-id "<session-id>" --output jsonCreates a new product in the WooCommerce storerobomotion woocommerce get_product --client-id --product-id [--60] --session-id "<session-id>" --output jsonRetrieves a single product by ID from WooCommercerobomotion woocommerce update_product --client-id --product-id --data [--60] --session-id "<session-id>" --output jsonUpdates an existing product in WooCommercerobomotion woocommerce delete_product --client-id --product-id [--60] --session-id "<session-id>" --output jsonDeletes a product from WooCommercerobomotion woocommerce list_products --client-id [--search] [--status] [--category] [--10] [--1] [--order-by] [--order] [--60] --session-id "<session-id>" --output jsonLists products from the WooCommerce storerobomotion woocommerce create_order --client-id --data [--status] [--payment-method] [--60] --session-id "<session-id>" --output jsonCreates a new order in WooCommercerobomotion woocommerce get_order --client-id --order-id [--60] --session-id "<session-id>" --output jsonRetrieves a single order by ID from WooCommercerobomotion woocommerce update_order --client-id --order-id --data [--60] --session-id "<session-id>" --output jsonUpdates an existing order in WooCommercerobomotion woocommerce delete_order --client-id --order-id [--60] --session-id "<session-id>" --output jsonDeletes an order from WooCommercerobomotion woocommerce list_orders --client-id [--status] [--search] [--10] [--1] [--order-by] [--order] [--60] --session-id "<session-id>" --output jsonLists orders from the WooCommerce storerobomotion woocommerce create_customer --client-id --email --first-name --last-name --data [--60] --session-id "<session-id>" --output jsonCreates a new customer in WooCommercerobomotion woocommerce get_customer --client-id --customer-id [--60] --session-id "<session-id>" --output jsonRetrieves a single customer by ID from WooCommercerobomotion woocommerce update_customer --client-id --customer-id --data [--60] --session-id "<session-id>" --output jsonUpdates an existing customer in WooCommercerobomotion woocommerce delete_customer --client-id --customer-id [--60] --session-id "<session-id>" --output jsonDeletes a customer from WooCommercerobomotion woocommerce list_customers --client-id [--search] [--role] [--10] [--1] [--order-by] [--order] [--60] --session-id "<session-id>" --output jsonLists customers from the WooCommerce storerobomotion woocommerce create_coupon --client-id --coupon-code --amount --data [--discount-type] [--60] --session-id "<session-id>" --output jsonCreates a new coupon in WooCommercerobomotion woocommerce get_coupon --client-id --coupon-id [--60] --session-id "<session-id>" --output jsonRetrieves a single coupon by ID from WooCommercerobomotion woocommerce update_coupon --client-id --coupon-id --data [--60] --session-id "<session-id>" --output jsonUpdates an existing coupon in WooCommercerobomotion woocommerce delete_coupon --client-id --coupon-id [--60] --session-id "<session-id>" --output jsonDeletes a coupon from WooCommercerobomotion woocommerce list_coupons --client-id [--search] [--10] [--1] [--order-by] [--order] [--60] --session-id "<session-id>" --output jsonLists coupons from the WooCommerce store
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)