> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quickshops.app/llms.txt
> Use this file to discover all available pages before exploring further.

# qs CLI

> Thin command-line client for the Quickshops Headless API, using the same /v1 contract as the SDK and MCP.

> [!NOTE]
>
> Requires a **trial or Pro** API key (`qk_…`). The CLI wraps the merchant SDK over HTTPS, with no separate backend.

## Install

```bash theme={null}
npm install -g @quickshops/cli
qs --help
```

Or run it once without installing:

```bash theme={null}
npx @quickshops/cli products list
```

Node 20 or later.

## Auth

```bash theme={null}
qs login --key qk_your_key_here
# optional:
qs login --key qk_… --api-url https://api.quickshops.app
```

Env aliases (override local config):

* `HEADLESS_API_KEY` / `QUICKSHOPS_API_KEY`
* `HEADLESS_API_URL` / `QUICKSHOPS_API_URL`

```bash theme={null}
qs whoami
```

## Products

```bash theme={null}
qs products list [--limit 20] [--include-inactive]
qs products create --name NAME --price CENTS --tax-code CODE \
  [--type digital|physical] [--download-url URL]
qs products update <productId> [--name NAME] [--price CENTS] [--active true|false]
qs products delete <productId>
```

`--price` is **integer cents** (900 = €9.00 / \$9.00 depending on your Stripe currency).

## Orders

```bash theme={null}
qs orders list [--limit 10]
qs orders get <orderId>
qs orders ship <orderId> [--tracking NUMBER] [--carrier NAME]
qs orders refund <orderId> [--line-item-id ID…] [--restock true|false]
```

## Relationship to SDK / MCP

| Surface | Best for |
| - | - |
| `qs` | Quick ops in a terminal or agent shell |
| [`useMerchant()`](https://docs.quickshops.app/sdk/merchant) | App code and Server Actions (`@quickshops/sdk@^1.3.0`) |
| [MCP](https://docs.quickshops.app/mcp/overview.md) | Conversational agents in Cursor / Claude |
| Raw OpenAPI | Non-TS languages |

All four call `https://api.quickshops.app/v1`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.