Cogny CLI · E-commerce

    Abicart summed up from the shell.

    Pull Abicart orders, revenue per week, best sellers, articles, customers and discounts as JSON — from Bash over the Abicart MCP. One admin API token, then every read is a shell command an agent can schedule, and catalog edits go through the same approval gate as every other write in Cogny.

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

    cogny --who

    TWO PATHS
    You're a human

    Checking how an Abicart shop is doing means opening the order list, exporting it, and building the week-over-week sums in a spreadsheet. get_sales_summary pages through every order server-side and returns the totals per day, week or month in the shop’s base currency in one call. Connect Abicart 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 Abicart 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 Abicart MCP. Send --input JSON, get JSON back.

    mcp__Abicart__get_sales_summaryOrders and revenue per ISO week, foreign currencies converted with each order’s exchange rate.
    $ cogny tools call mcp__Abicart__get_sales_summary \
      --input '{"start_date":"2026-08-01","end_date":"2026-09-07","group_by":"week"}'
    example response
    {
      "base_currency": "SEK",
      "orders_scanned": 99,
      "totals": {
        "orders": 99,
        "revenue_inc_vat": 56889.12,
        "revenue_ex_vat": 45661.01,
        "avg_order_value_inc_vat": 574.64
      },
      "periods": [
        {
          "period": "2026-W32",
          "orders": 23,
          "revenue_inc_vat": 13796.03,
          "revenue_ex_vat": 11086.35,
          "avg_order_value_inc_vat": 599.83
        },
        {
          "period": "2026-W33",
          "orders": 17,
          "revenue_inc_vat": 9828.47,
          "revenue_ex_vat": 7862.77,
          "avg_order_value_inc_vat": 578.15
        },
        {
          "period": "2026-W34",
          "orders": 23,
          "revenue_inc_vat": 15703.03,
          "revenue_ex_vat": 12562.43,
          "avg_order_value_inc_vat": 682.74
        }
      ],
      "by_currency": {
        "SEK": {
          "orders": 87,
          "revenue_inc_vat_native": 46834.2,
          "revenue_inc_vat_base": 46834.2
        },
        "EUR": {
          "orders": 6,
          "revenue_inc_vat_native": 577.55,
          "revenue_inc_vat_base": 6377.25
        }
      },
      "by_payment_status": {
        "paid": 96,
        "reserved": 3
      }
    }
    mcp__Abicart__get_top_articlesBest sellers in a window, by revenue or quantity.
    $ cogny tools call mcp__Abicart__get_top_articles \
      --input '{"start_date":"2026-08-01","end_date":"2026-09-07","limit":3,"metric":"revenue"}'
    example response
    {
      "base_currency": "SEK",
      "orders_scanned": 99,
      "distinct_articles": 99,
      "totals": {
        "quantity": 1233,
        "revenue_inc_vat": 51137.11,
        "revenue_ex_vat": 40909.74
      },
      "articles": [
        {
          "article_id": 222423275,
          "article_number": "9099-4",
          "name": "Härliga rosetter, Bra Jobbat, 10-pack med hake",
          "quantity": 20,
          "orders": 6,
          "revenue_inc_vat": 5000,
          "revenue_ex_vat": 4000
        },
        {
          "article_id": 222423273,
          "article_number": "9099-3",
          "name": "Härliga rosetter, Bra Jobbat, 10-pack med säkerhetsnål",
          "quantity": 19,
          "orders": 1,
          "revenue_inc_vat": 4750,
          "revenue_ex_vat": 3800
        },
        {
          "article_id": 222423069,
          "article_number": "9099-1",
          "name": "Roliga hästrosetter, 10-pack med hake",
          "quantity": 10,
          "orders": 2,
          "revenue_inc_vat": 2500,
          "revenue_ex_vat": 2000
        }
      ]
    }
    mcp__Abicart__list_ordersFilter orders by window and status, page with offset.
    $ cogny tools call mcp__Abicart__list_orders \
      --input '{"ordered_after":"2026-09-01","payment_status":"reserved","include_items":true,"limit":1}'
    example response
    {
      "items": [
        {
          "uid": 278529192,
          "ordered": "2026-09-07T19:32:27Z",
          "currency": "SEK",
          "paymentStatus": "reserved",
          "deliveryStatus": "unsent",
          "costs": {
            "total": {
              "exVat": 108,
              "incVat": 135,
              "vat": 27,
              "currency": "SEK"
            }
          },
          "items": [
            {
              "uid": 447436592,
              "article": 222422963,
              "articleNumber": "9999-14",
              "articleName": "Världens bästa hund - LAVENDEL med tassband",
              "choices": {
                "quantity": 1
              }
            }
          ]
        }
      ],
      "count": 1,
      "limit": 1,
      "offset": 0,
      "has_more": true
    }

    cogny tools list

    MORE

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

    mcp__Abicart__get_shopmcp__Abicart__count_ordersmcp__Abicart__get_ordermcp__Abicart__get_order_shipmentsmcp__Abicart__list_articlesmcp__Abicart__get_articlemcp__Abicart__list_article_groupsmcp__Abicart__get_article_group_treemcp__Abicart__list_customersmcp__Abicart__count_customersmcp__Abicart__list_discountsmcp__Abicart__update_articlemcp__Abicart__update_discountmcp__Abicart__call_method

    cogny --faq

    Is this an official Abicart CLI?

    No — it is the Cogny CLI calling the Abicart MCP over the cogny-mcp-proxy, which speaks Abicart’s JSON-RPC 2.0 API (developer.abicart.se). You connect an Abicart admin API token once in Cogny, then read the shop from Bash. Abicart AB is not affiliated.

    Where do I get the token?

    In the Abicart admin for the webshop, create an API token and copy the value in the Token column. It is an administrator token bound to that shop, so no shop id is needed — the MCP resolves it from the token.

    Can it modify my shop?

    Only through explicitly named write tools — update_article, create_article, update_article_group, update_order (note/tags/external number), update_customer, create_discount and update_discount — each flagged as a write so Cogny asks before running them. Deletes, checkout, payment capture and shipping are not exposed; the call_method escape hatch blocks them too.

    How are multi-currency orders summed?

    get_sales_summary and get_top_articles convert each order to the shop’s base currency using the exchange rate Abicart stores on the order at purchase time, and also report native amounts per currency.

    related CLIs

    /cli/shopify/cli/woocommerce/cli/fortnox/cli/ga4

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