CLI commands and flags

--worktree

Launches Claude inside an isolated git worktree, optionally checked out from a pull request or merge request.

Syntax

--worktree

Example

Terminal
claude -w feature-auth

Type to search the reference, templates and lessons.