rt worktree each
rt › worktree › each
Run a command in each worktree (--all | --on-deck, 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 --on-deck) |
--on-deck | boolean | false | Run only in on-deck worktrees (alias --parked) |
<command> | text | Command to run in each selected worktree; omit both flags to pick interactively |
See code: commands/worktree.ts › worktreeEach