Skip to content

List worktrees

hwt list returns Herdr’s machine-readable worktree inventory for a repository.

Terminal window
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.

List worktrees for the current repository:

Terminal window
hwt list

List worktrees without changing directories:

Terminal window
hwt list --cwd ~/code/project