Skip to content

Commit cc0a0e3

Browse files
authored
Merge pull request #14 from Shopify/update-readme-cli-docs
Update README to reflect actual CLI behavior and Shop skill companionship
2 parents 0c0614b + f6bc5d4 commit cc0a0e3

1 file changed

Lines changed: 20 additions & 56 deletions

File tree

README.md

Lines changed: 20 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Shop CLI
22

3-
Personal shopping CLI for Shop catalog search, checkout, and order workflows.
3+
Personal shopping CLI for the Shop catalog: search millions of stores, look up products, sign in to your Shop account, build and complete UCP checkouts, and search your orders for tracking, returns, and reorders.
4+
5+
It talks to the Shopify Global Catalog over MCP and to Shop's auth, checkout, and orders APIs. Tokens are stored in your OS secret store via `keytar`.
6+
7+
## Companion to the Shop skill
8+
9+
This CLI is the companion to the **Shop skill**, the agent-facing playbook that drives the end-to-end shopping conversation. The skill calls these commands under the hood and documents every command, flag, and workflow in full.
10+
11+
The skill lives at **https://shop.app/SKILL.md** — see it for the complete reference.
412

513
## Install
614

@@ -14,72 +22,28 @@ Or with npm:
1422
npm install --global @shopify/shop-cli
1523
```
1624

25+
Requires Node.js >= 20.
26+
1727
## Usage
1828

1929
```bash
2030
shop --help
31+
shop auth status
2132
shop search "trail running shoes" --limit 10
2233
shop catalog lookup gid://shopify/ProductVariant/50362300006715
23-
shop auth login
24-
shop auth status
34+
shop orders search --type recent
2535
```
2636

2737
## Commands
2838

29-
### Search catalog
30-
31-
```bash
32-
shop search "black crewneck sweater" --limit 10
33-
shop search "boots" --ships-to US --country US
34-
shop search --like-id gid://shopify/p/abc123
35-
shop search --image ./photo.jpg
36-
```
37-
38-
Useful flags:
39-
40-
```text
41-
--country <ISO2> Buyer country/catalog context
42-
--ships-to <ISO2> Filter to products that ship to the destination
43-
--limit <number> Result limit, 1-50
44-
--format md|json Output format for catalog results
45-
```
46-
47-
### Catalog lookup
48-
49-
```bash
50-
shop catalog lookup <product-or-variant-id...>
51-
shop catalog get-product <product-or-variant-id>
52-
```
53-
54-
### Auth
55-
56-
```bash
57-
shop auth login
58-
shop auth status
59-
shop auth logout
60-
```
61-
62-
### Checkout
39+
- `shop search` — search the catalog by text, similar items (`--like-id`), or image (`--image`).
40+
- `shop catalog lookup` / `shop catalog get-product` — look up IDs you already hold and fetch full product detail.
41+
- `shop auth` — sign in (`login`, or the non-blocking `device-code` + `poll`), check `status`, or `logout`.
42+
- `shop checkout``create`, `update`, and `complete` a UCP checkout on the merchant domain (`complete` requires `--confirm`).
43+
- `shop orders search` — search recent orders, tracking, order info, returns, and reorder candidates.
44+
- `shop config` — persist CLI preferences such as a default country.
6345

64-
```bash
65-
printf '{"email":"buyer@example.com"}' | \
66-
shop checkout create \
67-
--shop-domain example.myshopify.com \
68-
--variant-id 123 \
69-
--quantity 1 \
70-
--checkout-stdin
71-
```
72-
73-
`shop checkout complete` requires `--confirm` and should only be used after confirming the item, variant, quantity, price, shipping, and total cost.
74-
75-
### Orders
76-
77-
```bash
78-
shop orders search --type recent
79-
shop orders search --type tracking --query "running shoes"
80-
shop orders search --type returns --query "jacket"
81-
shop orders search --type reorder --query "coffee"
82-
```
46+
Run `shop <command> --help` for the flags on any command, and see the [Shop skill](https://shop.app/SKILL.md) for the full reference and shopping workflow.
8347

8448
## Personal-use limits
8549

0 commit comments

Comments
 (0)