compozy workspace add
Register a workspace
compozy workspace add
Register a workspace
compozy workspace add <path> [flags]Examples
# Register a workspace with a stable name
compozy workspace add "$PWD" --name checkout-api
# Include an additional directory and set a workspace default agent
compozy workspace add "$PWD" --name platform --add-dir "$PWD/docs" --default-agent architectOptions
--add-dir stringArray Additional directory to include (repeatable)
--default-agent string Default agent override for this workspace
-h, --help help for add
--name string Optional workspace name
--sandbox string Sandbox profile override for this workspaceOptions inherited from parent commands
--json Emit JSON output
-o, --output string Output format: human, json, jsonl, or toon (default "human")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 workspace add <path> -o json