Cogny CLI · E-commerce

    WooCommerce scriptable from Bash.

    Pull WooCommerce orders, products, customers and coupons, run the sales and top-sellers reports, and create or update store records — from the shell over the WooCommerce REST API MCP. No consumer key in your shell history.

    # 1. sign up (free for 15 calls) — uses your git email
    $ npx @cogny/cli init --agent claude-code
    
    # 2. see every WooCommerce tool
    $ cogny tools list
    
    # 3. call any tool from Bash — no MCP wiring
    $ cogny tools call mcp__WooCommerce__get_sales_report --input '{…}'
    ❯ start Cogny Solo — $9/mo@cogny/cli on npm →

    cogny --who

    TWO PATHS
    You're a human

    The WordPress admin makes you click into WooCommerce → Orders or Reports and export per view. The CLI returns the same data as one JSON call you can schedule, diff, or hand to an agent. Connect WooCommerce once in Cogny Solo and let your coding agent — or scheduled reports — do the querying for you.

    ❯ start Solo
    You're an agent

    Self-onboard with one command. The CLI issues a key, wires nothing, and exposes every WooCommerce tool over JSON-RPC. First 15 calls are free.

    $ npx @cogny/cli init --agent claude-code

    cogny tools call

    3 EXAMPLES

    Real tool names from the WooCommerce MCP. Send --input JSON, get JSON back.

    mcp__WooCommerce__get_sales_reportSales totals for a period or explicit date range.
    $ cogny tools call mcp__WooCommerce__get_sales_report \
      --input '{"period":"month"}'
    example response
    [
      {
        "total_sales": "48210.75",
        "net_sales": "44102.10",
        "total_orders": 612,
        "total_items": 1488,
        "total_customers": 503,
        "total_refunds": "910.00"
      }
    ]
    mcp__WooCommerce__list_ordersList orders with status and paging.
    $ cogny tools call mcp__WooCommerce__list_orders \
      --input '{"per_page":2,"status":"processing","orderby":"date","order":"desc"}'
    example response
    [
      {
        "id": 4821,
        "number": "4821",
        "status": "processing",
        "total": "129.00",
        "currency": "USD",
        "date_created": "2026-06-15T09:14:02"
      },
      {
        "id": 4820,
        "number": "4820",
        "status": "processing",
        "total": "74.50",
        "currency": "USD",
        "date_created": "2026-06-15T08:51:33"
      }
    ]
    mcp__WooCommerce__get_top_sellers_reportBest-selling products for a period.
    $ cogny tools call mcp__WooCommerce__get_top_sellers_report \
      --input '{"period":"last_month"}'
    example response
    [
      {
        "product_id": 331,
        "name": "Trail Runner GTX",
        "quantity": 214
      },
      {
        "product_id": 309,
        "name": "City Sneaker",
        "quantity": 167
      }
    ]

    cogny tools list

    MORE

    A sample of the rest of the WooCommerce surface. Run cogny tools list --json for every tool and its input schema.

    mcp__WooCommerce__get_productmcp__WooCommerce__list_productsmcp__WooCommerce__get_ordermcp__WooCommerce__create_ordermcp__WooCommerce__list_customersmcp__WooCommerce__list_couponsmcp__WooCommerce__create_couponmcp__WooCommerce__get_report_totalsmcp__WooCommerce__get_system_status

    cogny --faq

    Is this an official WooCommerce tool?

    No — it is the Cogny CLI calling the WooCommerce REST API MCP over the cogny-mcp-proxy. You add your store URL and REST keys once in Cogny, then read orders/reports and create records from Bash. WooCommerce, Inc. is not affiliated.

    Which API does it use?

    The WooCommerce REST API (v3). Read tools (orders, products, customers, sales/top-sellers reports) and write tools (create/update order, product, coupon, customer) map directly to REST endpoints and return JSON.

    Is my consumer key exposed in the shell?

    No. The proxy holds the WooCommerce consumer key/secret; the CLI authenticates with your Cogny key. Nothing store-secret lands in your shell history.

    related CLIs

    /cli/shopify/cli/wordpress/cli/klaviyo/cli/ga4

    Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt