List worktrees
hwt list returns Herdr’s machine-readable worktree inventory for a repository.
hwt list [--cwd PATH]By default, hwt resolves the repository from the current directory and invokes Herdr’s worktree list command with JSON output.
| Flag | Description |
|---|---|
--cwd PATH |
Repository path. Defaults to the current directory. |
Examples
Section titled “Examples”List worktrees for the current repository:
hwt listList worktrees without changing directories:
hwt list --cwd ~/code/project