File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,6 +119,43 @@ rli mcp start # Start the MCP server
119119rli 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
124161Runloop includes a Model Context Protocol (MCP) server that allows AI assistants like Claude to interact with your devboxes.
You can’t perform that action at this time.
0 commit comments