website/docs/cli-reference/worktree.md
Generated from bd help --doc worktree
Manage git worktrees with proper beads configuration.
Worktrees allow multiple working directories sharing the same git repository, enabling parallel development (e.g., multiple agents or features).
Worktrees automatically share the same beads database as the main repository via git common directory discovery — no manual redirect configuration needed.
Examples: bd worktree create feature-auth # Create worktree bd worktree create bugfix --branch fix-1 # Create with specific branch name bd worktree list # List all worktrees bd worktree remove feature-auth # Remove worktree (with safety checks) bd worktree info # Show info about current worktree
bd worktree
Create a git worktree for parallel development.
This command:
The worktree automatically shares the same beads database as the main repository via git common directory discovery — no redirect file needed.
Examples: bd worktree create feature-auth # Create at ./feature-auth bd worktree create bugfix --branch fix-1 # Create with branch name bd worktree create ../agents/worker-1 # Create at relative path
bd worktree create <name> [--branch=<branch>] [flags]
Flags:
--branch string Branch name for the worktree (default: same as name)
Show information about the current worktree.
If the current directory is in a git worktree, shows:
Examples: bd worktree info # Show current worktree info bd worktree info --json # JSON output
bd worktree info
List all git worktrees and their beads configuration state.
Shows each worktree with:
Examples: bd worktree list # List all worktrees bd worktree list --json # JSON output
bd worktree list
Remove a git worktree with safety checks.
Before removing, this command checks for:
Use --force to skip safety checks (not recommended).
Examples: bd worktree remove feature-auth # Remove with safety checks bd worktree remove feature-auth --force # Skip safety checks
bd worktree remove <name> [flags]
Flags:
--force Skip safety checks