OS Manuals

/usr/bin/wt

A CLI for Git worktree management, designed for parallel AI agent workflows

From worktrunk 0.81.0-r1 (enterprise-packages), captured 2026-11-08 by running wt --help (exit 0). permalink

wt - Git worktree management for parallel AI agent workflows

Usage: wt [OPTIONS] [COMMAND]

Commands:
  switch  Switch to a worktree; create if needed
  list    List worktrees and their status
  remove  Remove worktree; delete branch if merged
  merge   Merge a branch into the target branch
  step    Run individual operations
  hook    Run configured hooks
  config  Manage user & project configs

Options:
  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Global Options:
  -C <path>
          Working directory for this command

      --config <path>
          User config file path

      --config-set <toml>
          Override config with inline TOML, e.g. --config-set list.full=true (repeatable)

  -v, --verbose...
          Verbose output (-v: info logs + hook/alias template variables on stderr; -vv: also debug
          logs and raw subprocess output written to .git/wt/logs/). Set WORKTRUNK_VERBOSE=0|1|2 to
          apply the same level everywhere — including shell completion, which no flag can reach

  -y, --yes
          Skip approval prompts

Getting started

  wt switch --create feature    # Create worktree and branch
  wt switch feature             # Switch to worktree
  wt list                       # Show all worktrees
  wt remove                     # Remove worktree; delete branch if merged

Run wt config shell install to set up directory switching.
Run wt config create to customize worktree locations.

Docs: https://worktrunk.dev
GitHub: https://github.com/max-sixty/worktrunk
Options (7)
OptionDescriptionSource
-h, --helpPrint help (see a summary with '-h')help
-V, --versionPrint versionhelp
-C pathWorking directory for this commandhelp
--config pathUser config file pathhelp
--config-set tomlOverride config with inline TOML, e.g. --config-set list.full=true (repeatable)help
-v, --verboseVerbose output (-v: info logs + hook/alias template variables on stderr;help
-y, --yesSkip approval promptshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.