Banner & BoothDocs

CLI reference

Every bannerbooth command and flag for search, planning, local artwork preflight, checkout links, orders and the stdio MCP bridge, with exit codes.

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 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.

# 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

FlagDescription
--jsonMachine output: one JSON object on stdout. Errors as JSON on stderr.
--humanForce human-readable output even when stdout isn't a terminal.
--prettyIndent JSON output.
--fields a,bKeep only these keys. Applies to each result in search and each plan in plan.
--schemaPrint the command's input JSON Schema instead of running it.
--help, -hHelp.
--version, -vVersion.
--keyOrder 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

VariableDescription
BANNERBOOTH_APIAPI base URL. Default https://mcp.bannerandbooth.com.
BB_ORDER_KEYOrder key for order commands, when not passed with --key.

Exit codes

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

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

Catalog commands

bannerbooth search <query> [--category slug] [--max-price N] [--min-price N] [--fire-cert "NFPA 701"] [--limit N] [--all-variants]
FlagDescription
<query>Words; quote them or not. Required.
--categoryCategory slug.
--max-price, --min-priceUnit price limits, USD.
--fire-certRequire a rating, e.g. "NFPA 701", CPAI-84.
--limit1-25, default 8.
--all-variantsOne row per option instead of per product.
bannerbooth search 6 ft fitted table throw --limit 2 --fields sku,price,title --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

bannerbooth get <sku>

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

categories

bannerbooth categories

venue

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

bannerbooth cutoff --show-date YYYY-MM-DD [--venue X] [--sku SKU]
bannerbooth cutoff --show-date 2027-01-06 --venue LVCC --sku BB-KIT-1010A --human
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

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

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.

FlagDescription
--skuTarget product.
--width-in, --height-inVisible print size in inches, instead of a SKU.
--vectorTreat as vector.
--fonts-outlinedFonts are converted to outlines.
--no-bleedThe 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.

bannerbooth preflight ./retractable_75dpi.png --sku BB-RB-33STD --human
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

bannerbooth inspect <file>

Local measurements only, no network call.

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

cart

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.

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

quote

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

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).

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

mcp

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.

schema

bannerbooth schema [command]

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

bannerbooth schema cart --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

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.

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

order create

bannerbooth order create SKU[:qty]... (--test | --email EMAIL --yes) [flags]
FlagDescription
SKU[:qty]One or more items. Quantity defaults to 1.
--testCreate a test order. Nothing is charged, printed or sent.
--emailBuyer email. Required for live orders.
--yesRequired 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, --phoneBuyer details.
--speedground (default) or 2nd_day_air.
--discountBOOTH5 or FLEET10 (the best eligible is applied anyway).
--show-name, --show-date, --venue, --boothThe show. --show-date adds the deadline check.
--exhibitor, --ship-to-show, --warehouse-deadline, --contractorShipping to a show: --ship-to-show is advance_warehouse, show_site or address.
--poPurchase order number.
--notesInstructions for prepress.
--notify-urlWebhook URL; the webhook_secret is saved with the key.
--invoice-emailHave Shopify email the payment link to --email.
--artwork FILE:SKU[,FILE2:SKU2]Upload these files right after creating.
--idempotency-keyYour own key. By default the CLI generates one per run.
--sourceYour 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.

# 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

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.

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

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.

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

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.

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

order status

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

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

bannerbooth order proofs <id>

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

order approve

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

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

bannerbooth order pay <id> [--open] [--send-email]
FlagDescription
(none)Print pay_url.
--openAlso open it in the default browser.
--send-emailHave Shopify email it to the order's email.

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

order watch

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

bannerbooth order events <id>

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

order cancel

bannerbooth order cancel <id>

Cancels an unpaid order.

order list

bannerbooth order list

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

order simulate

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

Test orders only. See Test mode.

Order command errors

CodeExitMeaning
confirm_required1Live order create or order reorder without --yes. For create, the quote is in the error JSON.
usage1Missing id, file or items, or no key found for the order.
upload_failed2A PUT of the file or a part failed. Re-run order upload.
API codes (unauthorized, conflict, ...)2, or 3 for not_foundFrom the API. See Errors.