Skip to content
gwmgwmgwmv1.10.0

Subcommand reference

gwm <subcommand> is the scriptable face of gwm. Every command exits with a meaningful code (0 ok, 1 warning, 2 failure) so you can wire gwm doctor into CI without parsing stdout.

Bare gwm (no subcommand) opens the TUI on the current repo.

gwm list: the worktree table on stdout, with the * current marker and per-worktree status

Code Meaning
0 success, also “all green” for gwm doctor
1 recoverable failure: fuzzy miss, ambiguous match, doctor Warning
2 hard failure: bootstrap ✗, doctor Failure, unrecoverable git error