Skip to main content

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 / ArgTypeDefaultDescription
--allbooleanfalseRun in every worktree (mutually exclusive with --parked)
--parkedbooleanfalseRun only in parked worktrees
<command>textCommand to run in each selected worktree; omit both flags to pick interactively

See code: commands/worktree.ts › worktreeEach