Skip to content

daft exec

Run a command across one or more worktrees without changing your current directory.

TIP

This is the short form of git worktree-exec. The two are equivalent; this page mirrors the reference for convenience.

See git worktree-exec for the full CLI reference.

Quick examples

bash
daft exec --all -- cargo test
daft exec feat/auth 'feat/ui-*' -- pnpm lint
daft exec --all -x 'mise install' -x 'pnpm build' -x 'pnpm test'
daft exec feat/auth -- claude

See Also

Released under MIT or Apache-2.0.