Skip to main content
The 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.

ctrlc api

Interact directly with the Ctrlplane API. See CI/CD Integration for detailed usage.

ctrlc apply

Apply resource definitions from YAML files.

Global Flags

Next Steps

Sync Pipe

Sync resources from stdin

CI/CD Integration

Use the CLI in CI/CD pipelines

Resource Providers

Built-in resource providers

Custom Provider

Build your own provider