Skip to content

CLI commands

CommandPurpose
birch worktree newCreate a new worktree, optionally from a ticket/PR reference.
birch worktree listList all worktrees for the current repo.
birch worktree openOpen a worktree in your default editor.
birch worktree removeRemove a worktree (cleans up the folder and the linked ref).
birch commit suggestPrint an AI-generated commit message for the staged diff.
birch repo initInitialize a new worktree-laid-out repo.
birch repo migrateConvert a classic checkout to the worktree layout (same as the GUI migration).
  • --json — emit machine-readable output (see JSON output).
  • --quiet, -q — suppress informational logs; only print warnings and errors.
  • --repo <path> — operate on a specific repo (default: walk up from current directory).
  • --no-color — disable ANSI colors. Also honored when $NO_COLOR is set.
CodeMeaning
0Success
1Generic error
2Invalid CLI usage
10Repo not found or not a Birch-managed layout
11Worktree already exists
20Ticket-tracker request failed (network, auth)