# bannerbooth CLI

Zero-dependency Node 18+ CLI for the Banner & Booth agent API. Every command takes `--json` (machine output on stdout, errors as JSON on stderr), `--fields a,b` (keep only those keys) and `--schema` (print the command's input JSON Schema). Exit codes: 0 ok, 1 usage, 2 network/API, 3 not found, 4 preflight FAIL.

## Run without installing
```
npx -y https://mcp.bannerandbooth.com/cli/bannerbooth-1.2.1.tgz <command> [...]
# or: curl -fsSLo bannerbooth.mjs https://mcp.bannerandbooth.com/cli/bannerbooth.mjs && node bannerbooth.mjs <command>
```

## Commands
- `search <query> [--category slug] [--max-price N] [--min-price N] [--fire-cert "NFPA 701"] [--limit N] [--all-variants]`
- `get <sku>` — options, artwork template, cart link
- `categories`
- `venue <name|city>` — fire code, height cap, print hub
- `cutoff --show-date YYYY-MM-DD [--venue X] [--sku SKU]` — last day to order / approve proof
- `plan [--size 10x10|10x20|tabletop] [--budget N] [--venue X] [--show-date D] [--outdoor]`
- `preflight <file> --sku SKU` — reads PNG / JPEG / TIFF / PDF / SVG locally (pixel size, DPI tag, color mode, PDF page boxes); only the measurements are sent, never the file
- `cart SKU[:qty] [SKU[:qty]...] [--discount CODE] [--source NAME]`
- `quote --email you@co.com --details "..." [--company X] [--needed-by D] [--needs purchase_order,w9]`
- `mcp` — stdio MCP bridge to https://mcp.bannerandbooth.com/mcp for clients without remote MCP support
- `schema [command]`
