Skip to content

Commit 83f6781

Browse files
committed
cp dines
1 parent a33d8e3 commit 83f6781

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,43 @@ rli mcp start # Start the MCP server
119119
rli mcp install # Install Runloop MCP server configurat...
120120
```
121121

122+
### Output Format
123+
124+
All commands support the `--output` (or `-o`) parameter to control the output format. This is especially useful for scripting and automation:
125+
126+
```bash
127+
# Output as JSON (default for list commands)
128+
rli devbox list --output json
129+
rli devbox list -o json
130+
131+
# Output as YAML
132+
rli devbox get <id> --output yaml
133+
rli devbox get <id> -o yaml
134+
135+
# Output as text (default for single item commands)
136+
rli devbox get <id> --output text
137+
rli devbox get <id> -o text
138+
```
139+
140+
**Supported formats:**
141+
142+
- `text` - Human-readable key-value pairs (default for single items)
143+
- `json` - JSON format (default for list commands)
144+
- `yaml` - YAML format
145+
146+
**Examples:**
147+
```bash
148+
# Use JSON output for scripting
149+
DEVBOX_ID=$(rli devbox create --name my-devbox -o json | jq -r '.id')
150+
151+
# Use YAML for configuration files
152+
rli devbox get <id> -o yaml > devbox-config.yaml
153+
154+
# Use text for simple output
155+
rli devbox list -o text
156+
```
157+
158+
122159
## MCP Server (AI Integration)
123160

124161
Runloop includes a Model Context Protocol (MCP) server that allows AI assistants like Claude to interact with your devboxes.

0 commit comments

Comments
 (0)