wt doctor
Diagnose setup issues with a pass/warn/fail checklist.
Synopsis
Description
wt doctor runs a diagnostic checklist on a worktree or the current directory and prints pass/warn/fail for each item. Use it to quickly identify why setup is failing or why the wrong package manager was detected.
Arguments
| Argument | Description |
|---|---|
[path] | Directory to diagnose (default: current directory) |
Checks Performed
- git version ≥ 2.5
.worktreercTOML syntax is valid (if present).gitignorecovers.envfiles- Required package managers are on PATH (
bun,uv,npm, etc.) .envfiles referenced inenv.patternsexist in the main worktree- Symlinks in the worktree are not broken
node_modules/.venvare present when expected
Examples
Output Format
Exit Codes
| Code | Meaning |
|---|---|
0 | All checks passed |
1 | One or more failures |
2 | Warnings only |