{"schemaVersion":"opencli.cli.v1","slug":"terraform","name":"Terraform","shortName":"terraform","binaryName":"terraform","maker":{"slug":"hashicorp","name":"HashiCorp","type":"org","url":"https://hashicorp.com","officialPlatformMaker":true,"featuredBuilder":false},"category":"Containers / Infra","description":"The official CLI from HashiCorp. Infrastructure as code, plans, and provisioning from the terminal. Start with `terraform init` and go from there. Supports structured output — good for scripts and agents.","tagline":"Infrastructure as code, plans, and provisioning from the terminal.","install":{"packageManager":"brew","command":"brew tap hashicorp/tap && brew install hashicorp/tap/terraform","packageName":null,"npmPackage":null,"brewFormula":"terraform","brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"terraform version","signal":"Responds and is ready to inspect or plan."},"quickStart":"terraform init && terraform plan","exampleWorkflow":["terraform init","terraform plan","terraform apply"],"agent":{"readiness":{"label":"Great for agents","score":75,"reasons":["Structured output is available for parsing.","Supports non-interactive/scripted use.","Works well in CI or repeatable automation."],"guardrails":["Network access is required; avoid leaking secrets in logs.","Require confirmation before apply, delete, deploy, transfer, merge, or write actions."]},"packUrl":"https://opencli.co/cli/terraform/agent.md","packMarkdown":"# OpenCLI Agent Pack: Terraform\n\nUse this when an AI agent needs to work with `terraform`.\n\n## What this CLI is for\nThe official CLI from HashiCorp. Infrastructure as code, plans, and provisioning from the terminal. Start with `terraform init` and go from there. Supports structured output — good for scripts and agents.\n\nBest for: infrastructure as code, plans, and provisioning from the terminal.\n\n## Agent readiness\nGreat for agents (75/100)\n- Structured output is available for parsing.\n- Supports non-interactive/scripted use.\n- Works well in CI or repeatable automation.\n\n## Install\n```sh\nbrew tap hashicorp/tap && brew install hashicorp/tap/terraform\n```\n\n## Verify before real work\n```sh\nterraform version\n```\nExpected signal: Responds and is ready to inspect or plan.\n\n## Safe starting commands\n```sh\nterraform version\n```\n\n```sh\nterraform init && terraform plan\n```\n\n```sh\nterraform init\n```\n\n```sh\nterraform plan\n```\n\n```sh\nterraform apply\n```\n\n## Guardrails for agents\n- Network access is required; avoid leaking secrets in logs.\n- Require confirmation before apply, delete, deploy, transfer, merge, or write actions.\n\n## Suggested agent instruction\nYou may use Terraform (`terraform`) for infrastructure as code, plans, and provisioning from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"infrastructure as code, plans, and provisioning from the terminal.","useThisIf":"You're on HashiCorp and want the official terminal experience.","skipIf":"You don't work with containers and infrastructure.","whatHappensNext":"Run `terraform plan` to see it in action."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":true,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":false,"requiresNetwork":true,"ciFriendly":true,"localFirst":false,"destructivePotential":"high"},"taxonomy":{"useCases":["Infrastructure as code","Plans","Provisioning"],"aliases":["tf"],"keywords":["iac plan apply modules"],"tags":["official","agent-friendly","ci-friendly"]},"links":{"website":"https://developer.hashicorp.com/terraform/cli","github":"https://github.com/hashicorp/terraform","docs":"https://developer.hashicorp.com/terraform/cli","opencli":"https://opencli.co/cli/terraform","markdown":"https://opencli.co/cli/terraform/agent.md","json":"https://opencli.co/cli/terraform.json"},"metrics":{"githubStars":48609,"latestRelease":"2026-06-08T10:58:01Z","license":"NOASSERTION","metricLabel":null,"metricValue":null,"metricSource":null,"metricAsOf":"2026-06-08T11:00:32.578Z"}}