Skip to main content

CLI Overview

The caged CLI is the primary way to create and manage sandboxes from your terminal.

Installation

Verify the installation:

Authentication

This prompts for your API URL and API key. After entering your credentials, the CLI stores them locally at ~/.config/caged/config.json. Alternatively, set the CAGED_API_KEY environment variable:

Configuration

The CLI reads configuration from:
  1. Command-line flags (highest priority)
  2. .caged.yaml in the current directory
  3. ~/.config/caged/config.json (credentials)
  4. Environment variables (CAGED_*)

Credentials

Project Config

See Config-as-Code for the full .caged.yaml reference.

Output Formats

The CLI supports multiple output formats:

Autocomplete