Skip to main content

rt worktree each

rt › worktree › each

Run a command in every worktree

Usage​

bash
rt worktree each <command> [flags]

Arguments & flags​

Flag / ArgTypeDefaultDescription
--allbooleanfalseRun in every worktree (mutually exclusive with --on-deck)
--on-deckbooleanfalseRun only in on-deck worktrees (alias --parked)
<command>textCommand to run in each selected worktree; omit both flags to pick interactively

See code: commands/worktree.ts › worktreeEach