compozy worktree create
Create a worktree
566 pages in CLI Reference
On this page4
Usage
compozy worktree create [name] [flags]Options6
- --basestring
- Base ref for a new branch
- --branchstring
- Branch name for a new worktree
- --existing-branchstring
- Attach an existing branch
- --help-h
- help for create
- --pathstring
- Explicit worktree path
- --workspacestring
- Override workspace context (ID, name, or path)
Inherited options3
- --json
- Emit JSON output
- --output-ostring
- Output format: human, json, jsonl, or toon (default "human")
- --profilestring
- Act as a profile for this command
Output Formats
The root -o, --output flag accepts these values. A renderer is supported only when this command writes that result; jsonl is for commands that emit one JSON record per line.
| Format | Command result |
|---|---|
human | Interactive terminal rendering |
json | Machine-readable JSON rendering |
jsonl | One JSON record per line when supported |
toon | Compact agent-readable rendering |
Example:
compozy worktree create [name] -o json