Overview
Terraform Cloud extends your typical Terraform process—write configurations, runterraform plan, and execute terraform apply—by centralizing state, history, and team collaboration. Whether you’re kicking off runs manually, triggering them on Git commits, or embedding Terraform in CI/CD pipelines, Terraform Cloud adapts to your needs.
Terraform Cloud offers three main workflows to fit different team models:

| Workflow Type | Trigger | State & Run History | Ideal Use Case |
|---|---|---|---|
| CLI Workflow | Local CLI commands | Remote (Terraform Cloud) | Individual development & testing |
| Version Control Workflow | Git commits or PRs | Remote (Terraform Cloud) | GitOps-driven teams |
| API Workflow | Terraform Cloud API | Remote (Terraform Cloud) | CI/CD pipelines & custom tools |
- Queue runs on demand (manual).
- Push code to version control and apply manually (semi-automated).
- Deploy infrastructure on every commit (continuous).

1. CLI Workflow
The CLI Workflow is the default experience in Terraform Cloud and closely parallels open-source Terraform. You author and plan locally, but state and run history live in Terraform Cloud.
- State is stored remotely in Terraform Cloud.
- Runs can execute locally or in Terraform Cloud, based on workspace settings.
- You retain familiar CLI commands.
terraform block in your configuration:
If you haven’t authenticated yet, run
terraform login to save your API token locally.2. Version Control Workflow
The Version Control Workflow (VCS) integrates Terraform Cloud directly with Git platforms (GitHub, GitLab, Bitbucket, Azure DevOps). Each commit or pull request can automatically trigger plans and, optionally, applies.
- Automated
terraform planon commits or pull requests. - Speculative runs for pre-merge previews.
- Manual or automatic
terraform applyafter approval. - Branch-to-workspace mapping for different environments.
- GitHub
- GitLab
- Bitbucket
- Azure DevOps
- Detect the commit.
- Run
terraform plan. - Pause for manual approval (if auto-apply is off).
- Execute
terraform apply(if approved) and stream results back to both the UI and your Git platform.

Branching Strategy Example
Here’s one common mapping of Git branches to Terraform Cloud workspaces:
| Git Branch | Workspace |
|---|---|
| dev | Development |
| stage | Staging |
| main/master | Production |
Choose branch names and workspace mappings that align with your team’s release process to avoid accidental applies in production.
3. API Workflow
The API Workflow is the most flexible. It’s perfect for teams embedding Terraform in CI/CD pipelines, internal dashboards, or custom tools. You create runs via Terraform Cloud’s REST API, giving you full programmatic control.
- Package Terraform configurations (as a ZIP or VCS module).
- Authenticate with an API token.
- Call Terraform Cloud’s Runs API to create and monitor plans/applies.
- Implement custom logic for error handling and approvals.
Review the Terraform Cloud API documentation for endpoint details and rate limits.
Summary
Terraform Cloud provides three workflows to suit your team’s collaboration style:| Workflow Type | Description |
|---|---|
| CLI Workflow | Familiar local commands with remote state. |
| Version Control Workflow | GitOps-driven automation on commits/PRs. |
| API Workflow | Full programmatic control via REST API. |