> Documentation index: https://docs.bannerandbooth.com/llms.txt · MCP: https://mcp.bannerandbooth.com/mcp · Search: https://docs.bannerandbooth.com/search?q=

# CLI reference

Source: https://docs.bannerandbooth.com/reference/cli

`bannerbooth` is a zero-dependency Node CLI for the Banner & Booth API. It's built for agents: JSON output, JSON errors, input schemas on demand and meaningful exit codes. It also reads artwork files locally for preflight, so the file never leaves the machine.

## Install

Requires Node 18 or newer. Install [`bannerbooth`](https://www.npmjs.com/package/bannerbooth) from npm. The current version is 1.2.1 (`GET https://api.bannerandbooth.com/health` returns `cli_version` and `cli_url`). Once a day the CLI prints a notice on stderr when a newer version exists.

```bash
# Run without installing
npx -y bannerbooth@latest --help

# Or install globally
npm install -g bannerbooth@latest
bannerbooth --version

# Or download the single file
curl -fsSLo bannerbooth.mjs https://mcp.bannerandbooth.com/cli/bannerbooth.mjs
node bannerbooth.mjs --help
```

The examples below use `bannerbooth`. With `npx`, replace it with `npx -y bannerbooth@latest`.

> **Note:** npx can keep running a version from its cache. If `bannerbooth --version` is older than the `cli_version` from `/health`, or `order` commands are missing, use the versioned URL from `/health` (`cli_url`) instead.

## Global flags

| Flag | Description |
|---|---|
| `--json` | Machine output: one JSON object on stdout. Errors as JSON on stderr. |
| `--human` | Force human-readable output even when stdout isn't a terminal. |
| `--pretty` | Indent JSON output. |
| `--fields a,b` | Keep only these keys. Applies to each result in `search` and each plan in `plan`. |
| `--schema` | Print the command's input JSON Schema instead of running it. |
| `--help`, `-h` | Help. |
| `--version`, `-v` | Version. |
| `--key` | Order key for `order` commands. |

When stdout isn't a terminal (piped or run by an agent), output is JSON automatically unless you pass `--human`.

## Environment

| Variable | Description |
|---|---|
| `BANNERBOOTH_API` | API base URL. Default `https://mcp.bannerandbooth.com`. |
| `BB_ORDER_KEY` | Order key for `order` commands, when not passed with `--key`. |

## Exit codes

| Code | Meaning |
|---|---|
| `0` | Success. |
| `1` | Usage error: missing argument, unknown command, unreadable or unsupported file. |
| `2` | Network or API error. The JSON error on stderr has the API's `code`. |
| `3` | Not found (HTTP 404), e.g. unknown SKU or order. |
| `4` | Preflight verdict is `FAIL`. |

Errors print as `{"error":{"code":"...","message":"..."}}` on stderr with `--json` or when stderr isn't a terminal.

## Catalog commands

### search

```text
bannerbooth search <query> [--category slug] [--max-price N] [--min-price N] [--fire-cert "NFPA 701"] [--limit N] [--all-variants]
```

| Flag | Description |
|---|---|
| `<query>` | Words; quote them or not. Required. |
| `--category` | Category slug. |
| `--max-price`, `--min-price` | Unit price limits, USD. |
| `--fire-cert` | Require a rating, e.g. `"NFPA 701"`, `CPAI-84`. |
| `--limit` | 1-25, default 8. |
| `--all-variants` | One row per option instead of per product. |

```bash
bannerbooth search 6 ft fitted table throw --limit 2 --fields sku,price,title --json
```

```json
{"query":"6 ft fitted table throw","total_matches":44,"returned":2,"results":[{"sku":"BB-TT-6FIT","price":124.99,"title":"6 ft Fitted Table Throw, 4-Sided, Custom Printed"},{"sku":"BB-KIT-THROW2","price":249.99,"title":"Two 6 ft Fitted Table Throws, Matching Custom Print"}],"next_step":"Call get_display with a sku for every option, print specs and a cart link."}
```

(Output shortened: `filters`, `shipping` and `promo_codes` are also included.)

### get

```text
bannerbooth get <sku>
```

Product detail: options, fire rating, turnaround, artwork template, checkout link. Exit `3` for an unknown SKU.

### categories

```bash
bannerbooth categories
```

### venue

```text
bannerbooth venue <name or city>
```

Fire codes, height cap, nearest print hub and guide link. `venues` is an alias. With no argument, lists all 20.

### cutoff

```text
bannerbooth cutoff --show-date YYYY-MM-DD [--venue X] [--sku SKU]
```

```bash
bannerbooth cutoff --show-date 2027-01-06 --venue LVCC --sku BB-KIT-1010A --human
```

```text
Las Vegas Convention Center (LVCC): NFPA 701 + Clark County Fire, height 8ft rear / 4ft front
GREEN — Order with ground shipping by the cutoff; send artwork the same day.
  Ground: order by 2026-12-18, approve proof by 2026-12-21
  2nd Day Air: order by 2026-12-23, approve proof by 2026-12-24
```

### plan

```text
bannerbooth plan [--size 10x10|10x20|tabletop] [--budget N] [--venue X] [--show-date D] [--outdoor] [--source NAME]
```

Priced booth plans with checkout links. `--source` defaults to `bannerbooth-cli`.

### preflight

```text
bannerbooth preflight <file> --sku SKU [--vector] [--fonts-outlined] [--no-bleed]
bannerbooth preflight <file> --width-in N --height-in N
```

Reads the file locally (PNG, JPEG, TIFF, PSD, PDF, AI saved with PDF compatibility, EPS, SVG): pixel size, DPI tag, color mode, PDF page boxes, embedded images and fonts. Sends only those measurements to `/v1/artwork/preflight`.

| Flag | Description |
|---|---|
| `--sku` | Target product. |
| `--width-in`, `--height-in` | Visible print size in inches, instead of a SKU. |
| `--vector` | Treat as vector. |
| `--fonts-outlined` | Fonts are converted to outlines. |
| `--no-bleed` | The file is the visible area only. |

Adds local checks to the API's: a `dpi_tag` note when the file's DPI tag disagrees with its real print resolution, a font warning for unembedded PDF fonts or live SVG text, and notes about placed images. Exits `4` on `FAIL`.

```bash
bannerbooth preflight ./retractable_75dpi.png --sku BB-RB-33STD --human
```

```text
Preflight FAIL for BB-RB-33STD — retractable_75dpi.png
  [PASS] aspect_ratio: File ratio 0.385 matches the 33.5x86 in art size (bleed included).
  [FAIL] effective_resolution: 75 DPI at full print size (minimum 100, recommended 150).
         fix: Export at least 3350 x 8600 px (min) or 5025 x 12900 px (recommended), or send a vector PDF/AI/EPS/SVG.
  [WARN] color_mode: RGB file: bright greens, blues and oranges can shift when converted to CMYK ink.
         fix: Export CMYK if you have it, and put Pantone (PMS C) brand colors in your email.
  [INFO] dpi_tag: The file is tagged 150 DPI, but at full print size it delivers 75 DPI. Print resolution depends on pixels, not the tag.
  Template: 33.5 x 86 in with bleed · safe margin 2 in · 5025 x 12900 px at 150 DPI
  Every custom order also gets a free human prepress check and a digital proof within 2 business hours; nothing prints until you approve.
```

### inspect

```text
bannerbooth inspect <file>
```

Local measurements only, no network call.

```json
{"file":"retractable_75dpi.png","bytes":67188,"format":"png","width_px":2513,"height_px":6525,"color_mode":"rgb","dpi_tag":150}
```

### cart

```text
bannerbooth cart SKU[:qty] [SKU[:qty]...] [--discount CODE] [--source NAME] [--show-date D]
```

Checkout link with the best volume code. `--items SKU:qty,SKU:qty` also works. `--source` defaults to `bannerbooth-cli`.

```bash
bannerbooth cart BB-KIT-1010A:1 BB-ACC-LED2:1 --source my-agent --human
```

### quote

```text
bannerbooth quote --email you@company.com --details "..." [--name X] [--company X] [--phone X] [--skus A,B] [--quantity X] [--needed-by YYYY-MM-DD] [--zip X] [--needs purchase_order,net_terms,w9,tax_exempt,custom_size,bulk_pricing,rush] [--source NAME]
```

Sends a B2B request to the Banner & Booth sales desk. A person receives it. Only run it when the buyer asked for a quote and agreed to share their email.

### template

```text
bannerbooth template <sku> [--out file.svg]
```

Downloads the real-size print template for a SKU: an SVG with bleed, finished-edge and safe-zone guides. Saves to `<SKU>-template.svg` unless `--out` is given, and prints the path. Exits `3` for items without a fixed print size (canopies, blank hardware).

```bash
bannerbooth template BB-RB-33STD --out banner-template.svg
```

```json
{"sku":"BB-RB-33STD","file":"banner-template.svg","url":"https://api.bannerandbooth.com/v1/products/BB-RB-33STD/template.svg"}
```

### mcp

```bash
bannerbooth mcp
```

A stdio MCP server that forwards every JSON-RPC message to `https://mcp.bannerandbooth.com/mcp`. Use it with clients that only support stdio servers. See [Connect your agent](https://docs.bannerandbooth.com/connect#stdio-bridge).

### schema

```text
bannerbooth schema [command]
```

Prints the JSON Schema of one command's inputs, or of every command. `bannerbooth <command> --schema` does the same.

```bash
bannerbooth schema cart --json
```

```json
{"command":"cart","description":"Checkout link for SKU[:qty] items","type":"object","properties":{"items":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9-]+(:\\d+)?$"},"positional":true},"discount":{"type":"string"},"source":{"type":"string"},"show-date":{"type":"string"}},"required":["items"]}
```

## Order commands

Every `order` command except `quote`, `create` and `list` needs the order key. The CLI looks for it in this order:

1. `--key bbk_...`
2. The `BB_ORDER_KEY` environment variable.
3. `~/.bannerbooth/orders.json`, where `order create` saves every key it receives (with the `webhook_secret`, if any). The file is created with mode 600; treat it like a password file.

`orders` is an alias of `order`. Run `bannerbooth order <command> --schema` for any command's JSON Schema.

### order quote

```text
bannerbooth order quote SKU[:qty]... [--speed ground|2nd_day_air] [--discount CODE] [--show-date YYYY-MM-DD] [--venue X]
```

Prices an order without creating it: lines, discount, shipping, total, deadline, seller and refund policy. Accepts the same show flags as `order create`.

```bash
bannerbooth order quote BB-TB-10ST BB-TT-6FIT BB-RB-33STD --show-date 2027-01-06 --venue LVCC --human
```

### order create

```text
bannerbooth order create SKU[:qty]... (--test | --email EMAIL --yes) [flags]
```

| Flag | Description |
|---|---|
| `SKU[:qty]` | One or more items. Quantity defaults to 1. |
| `--test` | Create a test order. Nothing is charged, printed or sent. |
| `--email` | Buyer email. Required for live orders. |
| `--yes` | Required for live orders: confirms the buyer approved the items and total. |
| `--ship-to` | `"Name, 123 Main St, [Suite 4,] City, ST 12345"`. Lower 48 + DC. |
| `--name`, `--company`, `--phone` | Buyer details. |
| `--speed` | `ground` (default) or `2nd_day_air`. |
| `--discount` | `BOOTH5` or `FLEET10` (the best eligible is applied anyway). |
| `--show-name`, `--show-date`, `--venue`, `--booth` | The show. `--show-date` adds the deadline check. |
| `--exhibitor`, `--ship-to-show`, `--warehouse-deadline`, `--contractor` | [Shipping to a show](https://docs.bannerandbooth.com/guides/shipping-and-deadlines#shipping-to-a-show): `--ship-to-show` is `advance_warehouse`, `show_site` or `address`. |
| `--po` | Purchase order number. |
| `--notes` | Instructions for prepress. |
| `--notify-url` | Webhook URL; the `webhook_secret` is saved with the key. |
| `--invoice-email` | Have Shopify email the payment link to `--email`. |
| `--artwork FILE:SKU[,FILE2:SKU2]` | Upload these files right after creating. |
| `--idempotency-key` | Your own key. By default the CLI generates one per run. |
| `--source` | Your agent's name. Default `bannerbooth-cli`. |

A live `order create` without `--yes` doesn't create anything: it prints the quote as JSON on stderr, with error code `confirm_required`, and exits `1`. Show the buyer the total, then re-run with `--yes`.

```bash
# Test order with artwork in one step
bannerbooth order create BB-KIT-1010A:1 --test --show-date 2027-01-06 --venue LVCC --artwork ./backdrop.svg:BB-KIT-1010A

# Live order (after the buyer confirmed)
bannerbooth order create BB-KIT-1010A:1 --email jane@acmerobotics.com \
  --ship-to "Jane Buyer, 123 Main St, Suite 4, Austin, TX 78701" --company "Acme Robotics" \
  --show-name "CES 2027" --show-date 2027-01-06 --venue LVCC --booth N1234 --invoice-email --yes
```

Prints the order, its next actions and `export BB_ORDER_KEY=...` (shown once), and saves the key.

### order update

```text
bannerbooth order update <id> [SKU:qty...] [--email E] [--name N] [--company C] [--phone P] [--ship-to "..."] [--speed ground|2nd_day_air] [--discount CODE] [--po PO] [--notes "..."] [show flags]
```

Changes an unpaid order. Items, when given, replace every line. Show flags (`--show-name`, `--show-date`, `--venue`, `--booth`, `--exhibitor`, `--ship-to-show`, `--warehouse-deadline`, `--contractor`) are merged into the existing show. Prints the updated order with its new total.

```bash
bannerbooth order update bbo_test_xxvt4vq96t BB-TB-10ST:1 BB-TT-6FIT:1 BB-RB-33STD:1 --speed 2nd_day_air --booth N1301
```

### order brief

```text
bannerbooth order brief <id> [--sku SKU] (--logo FILE | --logo-url URL) [--headline "..."] [--subheadline "..."] [--website W] [--phone P] [--colors "#C2411F,PMS 186 C"] [--notes "..."]
```

For a buyer with only a logo. Uploads `--logo` with `role=logo`, then sends a design brief; prepress lays out the item for free and sends a proof. See [Artwork: design briefs](https://docs.bannerandbooth.com/guides/artwork#only-a-logo-design-briefs).

```bash
bannerbooth order brief bbo_test_xxvt4vq96t --sku BB-TT-6FIT --logo ./logo.svg --headline "Robots that ship" \
  --website acmerobotics.com --colors "#C2411F,PMS 186 C" --notes "Logo centered on the front panel."
```

### order reorder

```text
bannerbooth order reorder <id> [show flags] [--ship-to "..."] [--speed S] [--po PO] [--idempotency-key K] [--yes]
```

Creates a new order with the original's items (current prices), artwork and approved proofs, and saves the new key. Needs the original order's key (from `--key`, `BB_ORDER_KEY` or the keys file). A live reorder needs `--yes`; without it, the CLI exits `1` with `confirm_required`. Prints which SKUs reused artwork and which approvals carried over.

```bash
bannerbooth order reorder bbo_test_xxvt4vq96t --show-name "CES 2028" --show-date 2028-01-11 --venue LVCC --booth N1301 --po PO-8120
```

### order status

```text
bannerbooth order status <id> [--key KEY]
```

The order: status, lines, totals, payment link, artwork, pending proofs with links, tracking, deadline and next actions. `get` is an alias.

### order upload

```text
bannerbooth order upload <id> <file> [--sku SKU] [--key KEY]
```

Reads the file locally (same measurements as `preflight`), then uploads it with those measurements. Files up to 95 MB go in one request; larger files (up to 500 MB) use the two-step upload, split into parts when needed, with progress on stderr. Prints the server-side preflight verdict and the updated order. `--sku` is optional when only one line needs artwork.

### order proofs

```text
bannerbooth order proofs <id>
```

Each proof's id, version, kind, status, SKU and `preview_url`.

### order approve

```text
bannerbooth order approve <id> [proof_id] [--by "Jane Buyer"] [--note "..."]
```

Approves a proof. Without `proof_id`, approves the newest pending proof (`latest`). Authorizes printing; run it only on the buyer's instruction, and pass `--by` with their name.

### order changes

```text
bannerbooth order changes <id> "Move the logo up 6 inches" [--proof PROOF_ID]
```

Requests changes on the newest pending proof, or on `--proof`. 5-2,000 characters.

### order pay

```text
bannerbooth order pay <id> [--open] [--send-email]
```

| Flag | Description |
|---|---|
| (none) | Print `pay_url`. |
| `--open` | Also open it in the default browser. |
| `--send-email` | Have Shopify email it to the order's email. |

On a paid order it prints "This order is already paid."

### order watch

```text
bannerbooth order watch <id> [--interval SECONDS] [--once]
```

Polls the order (default every 60 seconds, minimum 15) and prints it each time the status, proof status or payment status changes. Stops when the order is shipped, delivered or cancelled. `--once` prints once and exits.

### order events

```text
bannerbooth order events <id>
```

The timeline: one line per event with its time and type.

### order cancel

```text
bannerbooth order cancel <id>
```

Cancels an unpaid order.

### order list

```bash
bannerbooth order list
```

Orders saved on this machine: id, mode, created date, total and items. Doesn't call the API.

### order simulate

```text
bannerbooth order simulate <id> paid|proof_ready|in_production|shipped|delivered
```

Test orders only. See [Test mode](https://docs.bannerandbooth.com/guides/test-mode).

### Order command errors

| Code | Exit | Meaning |
|---|---|---|
| `confirm_required` | 1 | Live `order create` or `order reorder` without `--yes`. For create, the quote is in the error JSON. |
| `usage` | 1 | Missing id, file or items, or no key found for the order. |
| `upload_failed` | 2 | A `PUT` of the file or a part failed. Re-run `order upload`. |
| API codes (`unauthorized`, `conflict`, ...) | 2, or 3 for `not_found` | From the API. See [Errors](https://docs.bannerandbooth.com/reference/errors). |

## Related

- [Quickstart: CLI](https://docs.bannerandbooth.com/quickstart#option-2-cli)
- [Artwork: preflight](https://docs.bannerandbooth.com/guides/artwork#preflight)
- [Agent Skills](https://docs.bannerandbooth.com/discovery#agent-skills)
