← Back to product·Simulmedia Switchboard Docs · v1 draft·Agents & tools / CLI
Agents & tools

CLI

One command-line tool covers both sides of the market: the catalog push and approval queue, catalog search, avails, and orders. Every command is a thin wrapper over the REST API.

npm install -g @simulmedia/swb   # placeholder package name
swb auth login

# sellers
swb seller push catalog.csv rates.csv avails.csv --manifest manifest.json
swb seller queue
swb seller decide ord_9f3a12c4b7e1 --approve --reason "clean"
swb seller counter ord_9f3a12c4b7e1 --unit u-0002 --week 2026-W42 --cost 392

# buyers
swb catalog search --seller acme --type daypart
swb avails get acme-prime --weeks 2026-W40,2026-W41
swb order create -f order.json
swb order watch ord_9f3a12c4b7e1     # live state rail in your terminal
swb order cancel ord_9f3a12c4b7e1

swb order watch tails the event stream and renders the state rail, ending, when things go well, at completed. --json on any command emits machine-readable output for scripts.