CLI Overview¶
Use the CLI to manage worktrees non-interactively, in scripts, and from coding agents.
Available Commands¶
lazyworktree listlazyworktree createlazyworktree deletelazyworktree renamelazyworktree doctorlazyworktree worktrees ...lazyworktree notes getlazyworktree execlazyworktree describe
Global config overrides:
lazyworktree --worktree-dir ~/worktrees
lazyworktree --config lw.theme=nord --config lw.sort_mode=active
Command Pages¶
For complete generated references, use:
- CLI Commands Reference
- CLI Flags Reference
lazyworktree --helpman lazyworktree
Machine-first workflow¶
For Codex or script automation, prefer this order:
lazyworktree describelazyworktree doctor --jsonlazyworktree worktrees list --jsonlazyworktree worktrees resolve --name <name> --jsonlazyworktree worktrees get <path-or-name> --jsonlazyworktree worktrees context <path-or-name> --jsonlazyworktree notes get <path-or-name> --json