Skip to content
Worix
BrowsePublish
Log inSign Up

Terraform Cloud

Terraform Cloud — manage workspaces, runs, plans, state, and variables via REST API

73 downloads
Free
Reviewed

🏗️ Terraform Cloud

Terraform Cloud — manage workspaces, runs, plans, state, and variables via REST API

Requirements

VariableRequiredDescription
TFC_TOKEN✅API token from app.terraform.io
TFC_ORG✅Organization name

Quick Start

# List organizations
python3 {{baseDir}}/scripts/terraform-cloud.py orgs

# List workspaces
python3 {{baseDir}}/scripts/terraform-cloud.py workspaces --search[name] <value>

# Get workspace
python3 {{baseDir}}/scripts/terraform-cloud.py workspace-get id <value>

# Create workspace
python3 {{baseDir}}/scripts/terraform-cloud.py workspace-create --name <value> --auto-apply <value> --terraform-version <value>

# Delete workspace
python3 {{baseDir}}/scripts/terraform-cloud.py workspace-delete id <value>

# Lock workspace
python3 {{baseDir}}/scripts/terraform-cloud.py workspace-lock id <value> --reason <value>

# Unlock workspace
python3 {{baseDir}}/scripts/terraform-cloud.py workspace-unlock id <value>

# List runs
python3 {{baseDir}}/scripts/terraform-cloud.py runs id <value>

All Commands

CommandDescription
orgsList organizations
workspacesList workspaces
workspace-getGet workspace
workspace-createCreate workspace
workspace-deleteDelete workspace
workspace-lockLock workspace
workspace-unlockUnlock workspace
runsList runs
run-getGet run
run-createCreate run
run-applyApply run
run-discardDiscard run
run-cancelCancel run
plan-getGet plan
state-versionGet current state
variablesList variables
variable-createCreate variable
variable-deleteDelete variable
teamsList teams

Output Format

All commands output JSON by default. Add --human for readable formatted output.

python3 {{baseDir}}/scripts/terraform-cloud.py <command> --human

Script Reference

ScriptDescription
{{baseDir}}/scripts/terraform-cloud.pyMain CLI — all commands in one tool

Credits

Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.

📅 Need help setting up OpenClaw for your business? Book a free consultation

Download

ZIP package — ready to use

Skill Info

Creator
aiwithabidi
Downloads
73
Published
Mar 15, 2026
Updated
Mar 16, 2026