rt worktree each
rt › worktree › each
Run a command in each worktree (--all | --parked, else pick)
Usage
rt worktree each <command> [flags]
Arguments & flags
| Flag / Arg | Type | Default | Description |
|---|---|---|---|
--all | boolean | false | Run in every worktree (mutually exclusive with --parked) |
--parked | boolean | false | Run only in parked worktrees |
<command> | text | Command to run in each selected worktree; omit both flags to pick interactively |
See code: commands/worktree.ts › worktreeEach