ctrlc CLI is the primary tool for interacting with Ctrlplane from your
terminal, CI/CD pipelines, and automation scripts. It supports syncing
resources, managing deployments, and applying configuration.
Installation
Authentication
Set your API key and workspace as environment variables or pass them as flags:Commands
ctrlc sync
Sync infrastructure resources into Ctrlplane’s inventory. Each subcommand
targets a specific provider or input method.
| Subcommand | Description |
|---|---|
sync pipe | Read resources from stdin (JSON) |
sync kubernetes | Sync Kubernetes cluster resources |
sync aws | Sync AWS resources |
sync google-cloud | Sync Google Cloud resources |
sync azure | Sync Azure resources |
sync terraform | Sync Terraform state resources |
sync helm | Sync Helm releases |
sync github | Sync GitHub repositories |
sync vcluster | Sync virtual clusters |
ctrlc api
Interact directly with the Ctrlplane API.
| Subcommand | Description |
|---|---|
api upsert version | Create or update a deployment version |
ctrlc apply
Apply resource definitions from YAML files.
Global Flags
| Flag | Environment Variable | Description |
|---|---|---|
--api-key | CTRLPLANE_API_KEY | API key for authentication |
--workspace | CTRLPLANE_WORKSPACE | Workspace name or ID |
--url | CTRLPLANE_URL | Ctrlplane API URL (default: https://app.ctrlplane.dev) |