Config-as-Code
A.caged.yaml file in your repository root defines sandbox settings declaratively. When you run caged up, the CLI reads this file and creates a sandbox with the specified configuration.
Full Reference
Templates
Aliases resolve to the latest stable version. Use full names when you need a specific version.
Precedence
When both.caged.yaml and CLI flags are provided, CLI flags take precedence:
Secrets
Secrets are referenced by name in.caged.yaml and resolved from your account’s secret store:
Multiple Environments
Use different config files for different environments:Private Repositories
For private repos, provide authentication via token:Option 1: Environment Variable (Recommended)
Reference an environment variable containing your token:Option 2: CLI Flag
Pass the token directly (useful in CI):Option 3: Secrets Store
Store your token in the Caged secrets store:Token formats by provider:
- GitHub: Personal access token (
ghp_...) or fine-grained token - GitLab: Personal access token or OAuth token
- Bitbucket: App password