π₯οΈCLI & Chain Binary
The BitBadges CLI is the fastest way to interact with the BitBadges blockchain. A single install gives you everything: the chain binary, the SDK CLI, and 104+ API routes β all from your terminal.
One binary, one flat surface
There is exactly one canonical binary, bitbadgeschaind, shipped with a friendly two-letter alias bb via install.bitbadges.io. Use bb everywhere. The previous bb cli <subcmd> infix is gone β every SDK CLI verb is a first-class top-level command on bb:
bb build vault ... # SDK builder (was: bb cli build vault)
bb auctions place-bid 42 ... # SDK standards verb (was: bb cli auctions place-bid)
bb api tokens get-collection 1
bb tx tokenization create-collection ./col.json --from mykey # chain native
bb query bank balances bb1abc... # chain native
bb auth login --browser --address bb1...The flat surface comes with grouped help. Run bb --help and you see seven groups:
Chain node (Cosmos SDK) β
start,init,status,version,tx,query,keys,sign-arbitrary,genesis,debug,config,prune,snapshots,comet(the BitBadges chain node β distinct from the SDK indexer)BitBadges SDK β Build & Deploy β
build,check,explain,simulate,preview,deployBitBadges SDK β Standards β the 12 standards (
auctions,bounties,crowdfunds,credit-tokens,dynamic-stores,intents,nfts,pay-requests,prediction-markets,products,smart-tokens,subscriptions)BitBadges SDK β Indexer & Auth β
api,auth,accountBitBadges SDK β Swap / DEX β
swap,pools,pairs,priceBitBadges SDK β Dev β
dev(per-field MCP tools, resources, docs browser, skills, pubkey utilities)Local state β
settings,session,burner,doctor,completion
The groups exist so you can tell at a glance which surface owns a given verb β chain natives on top, SDK CLI below, local state at the bottom.
Install (One-Liner)
This installs the chain binary as bitbadgeschaind (with the bb alias) and the standalone SDK CLI (bitbadges-cli). Every example in these docs uses bb; the standalone bitbadges-cli binary still works for the SDK-only subset if you don't need the chain binary.
Verify your installation:
Quick examples
What You Can Do
Create a collection with no wallet setup
bb deploy --burner
bb build subscription β¦ | bb deploy --burner --msg-stdin --manager bb1β¦ --local
Sign with a browser wallet (Keplr / MetaMask)
bb auth login --browser
bb auth login --browser --address bb1...
Broadcast via your browser wallet
bb deploy --browser
bb deploy --browser --msg-file col.json --manager bb1...
Build + broadcast in one step
bb build β¦ --browser
bb build vault --name β¦ --browser
Sign now, broadcast later
bb deploy --browser --sign-only
bb deploy --browser --sign-only --msg-file col.json --manager bb1...
Get signable payload for a custom signer (ethers/viem/HSM)
bb deploy --gen-payload
bb build vault β¦ | bb deploy --gen-payload --from bb1... --with-evm-tx
Confirm a tx landed on chain
bb tx wait
bb tx wait $TXHASH --mainnet --timeout 60
Query any collection
bb api tokens get-collection
bb api tokens get-collection 1
Review and audit tokens
bb check
bb check tx.json
Explain a tx or collection
bb explain
bb explain tx.json
Dry-run a transaction
bb simulate
bb simulate tx.json
Dry-run a deploy without spending
bb deploy --dry-run
bb deploy vault.json --burner --dry-run --manager bb1...
Share a tx for visual review
bb preview
bb preview tx.json
Browse 100+ API routes
bb api
bb api tokens --help
Search API routes by keyword
bb api --search
bb api --search swap
Inspect a route's schema
bb api ... --schema
bb api tokens get-collection --schema
Convert addresses
bb account convert
bb account convert 0x1234... --to bb1
Look up token info
bb account lookup
bb account lookup USDC
Browse docs
bb dev docs
bb dev docs learn/approvals
List builder skills
bb dev skills
bb dev skills smart-token
Health check
bb doctor
bb doctor --testnet
Create/sign transactions
bb tx
bb tx tokenization create-collection ./col.json --from mykey
Manage keys
bb keys
bb keys add mykey
Query on-chain state
bb query
bb query tokenization collection 1
Deprecation runway β the old bb cli and standalone names still work
Every old form β bb cli <subcmd>, the per-utility top-level names that moved under bb account / bb dev / bb settings, the standalone sign-with-browser and gen-tx-payload, the per-standard <standard> build subcommands β is still accepted for one release. Running the old form prints a one-line deprecation banner to stderr:
Set BB_QUIET=1 (or pass --quiet) to suppress the banner. The next release after the deprecation window hard-fails old forms and removes every alias. Update your scripts and agent prompts before then.
If you are reading the historical migration note for a specific verb, the deprecation banner is the authoritative source of the new name β it always points at the v2 short form.
For AI Agents
The CLI is the recommended interface for AI agents and automation. It provides:
Structured JSON output for every data-emitting command β easy to parse programmatically
Uniform output envelope on stdout for every data-emitting command:
{ok, data, warnings, hint?, meta?, error}β same shape across the surface, with hints populated on common failure modes. The envelope is the only output mode;--format/--json/--humanflags are gone. Universal flags:--condensed(single-line) and--output-file <path>.bb buildextends the envelope with ametasidecar carrying validation, review, simulate, and resolved-metadata reports alongside the msg indata.--help-jsonflag that outputs the full command tree as structured JSON for LLM tool discovery--dry-runon bothsimulateanddeployfor safe preview before broadcasting--quiet(orBB_QUIET=1) silences stderr commentary across every command β pipe-friendly by default; this is also the toggle that suppresses the deprecation banner during the migration windowapi --search/--schemafor route discovery without grepping help texttx status/tx waitto confirm a tx landed on chain (Cosmos LCD + EVM RPC fall-through)Targeted
hint:on common errors β auth-rejected, 401/403, deploy insufficient-funds, tx-wait timeout β designed to cut agent retry loops in halfShell completion for interactive use:
eval "$(bb completion)"Pipe-friendly β accepts stdin (
-), file paths (@file.json), and inline JSON
See CLI for AI Agents for end-to-end agent workflows.
For building token collections with AI assistants (Claude, Cursor, etc.), see the BitBadges Builder Tools which provide 50+ tools on top of the CLI.
Next Steps
Installation β all install methods and configuration
Build Commands β flag-based generators for vault, subscription, bounty, auction, and 14 other token types
Standards Commands β consumer-side
list / show / status / <action>for every standard (auctions, crowdfunds, payment-requests, intents, swap, ...)Analysis Commands β
check,explain,simulate,previewDeploy Commands β ship a create-collection tx without bringing your own wallet (also covers
--wait-for-indexer+--with-keyring)Tx Commands β confirm a broadcast tx committed (Cosmos + EVM hash support)
Tool Commands β fine-grained MCP tools (
bb dev tools list/bb dev tools call), persisted sessions, static resourcesUtility Commands β
bb dev docs,bb dev skills,bb account convert,bb account alias,bb account lookup,bb account gen-list-id,bb doctorAPI Commands β 104+ API routes from your terminal
Auth Commands β wallet-agnostic SIWBB sessions for Full Access endpoints
Sign Bridge β sign with a browser wallet (Keplr/MetaMask) from the CLI;
bb deploy --gen-payloadfor custom programmatic signersChain Commands β keys, transactions, on-chain queries
CLI for AI Agents β agent workflows and automation patterns
Last updated