Skip to main content

CLI Reference

Complete reference for all bd commands.

Command Structure

bd [global-flags] <command> [command-flags] [arguments]

Global Flags

FlagDescription
--db <path>Use specific database file
--no-daemonBypass daemon, direct database access
--jsonOutput in JSON format
--quietSuppress non-essential output
--verboseVerbose output
--versionShow version
--helpShow help

Command Categories

Essential Commands

Most frequently used:

CommandDescription
bd createCreate new issue
bd listList issues with filters
bd showShow issue details
bd updateUpdate issue fields
bd closeClose an issue
bd readyShow unblocked work
bd syncForce sync to git

Issue Management

CommandDescription
bd createCreate issue
bd showShow details
bd updateUpdate fields
bd closeClose issue
bd deleteDelete issue
bd reopenReopen closed issue

Dependencies

CommandDescription
bd dep addAdd dependency
bd dep removeRemove dependency
bd dep treeShow dependency tree
bd dep cyclesDetect circular dependencies
bd blockedShow blocked issues
bd readyShow unblocked issues

Labels & Comments

CommandDescription
bd label addAdd label to issue
bd label removeRemove label
bd label listList all labels
bd comment addAdd comment
bd comment listList comments

Sync & Export

CommandDescription
bd syncFull sync cycle
bd exportExport to JSONL
bd importImport from JSONL
bd migrateMigrate database schema

System

CommandDescription
bd initInitialize beads in project
bd infoShow system info
bd versionShow version
bd configManage configuration
bd daemonsManage daemons
bd hooksManage git hooks

Workflows

CommandDescription
bd pourInstantiate formula as molecule
bd wispCreate ephemeral wisp
bd molManage molecules
bd pinPin work to agent
bd hookShow pinned work

Quick Reference

Creating Issues

# Basic
bd create "Title" -t task -p 2

# With description
bd create "Title" --description="Details here" -t bug -p 1

# With labels
bd create "Title" -l "backend,urgent"

# As child of epic
bd create "Subtask" --parent bd-42

# With discovered-from link
bd create "Found bug" --deps discovered-from:bd-42

# JSON output
bd create "Title" --json

Querying Issues

# All open issues
bd list --status open

# High priority bugs
bd list --status open --priority 0,1 --type bug

# With specific labels
bd list --label-any urgent,critical

# JSON output
bd list --json

Working with Dependencies

# Add: bd-2 depends on bd-1
bd dep add bd-2 bd-1

# View tree
bd dep tree bd-2

# Find cycles
bd dep cycles

# What's ready to work?
bd ready

# What's blocked?
bd blocked

Syncing

# Full sync (export + commit + push)
bd sync

# Force export
bd export

# Import from file
bd import -i .beads/issues.jsonl

See Also