# Install cdktf with Homebrew

Cloud Development Kit for Terraform. Version 0.21.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:cdktf
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cdktf
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:cdktf
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cdktf>
- **Version:** 0.21.0
- **Source summary:** Cloud Development Kit for Terraform
- **Homepage:** <https://github.com/hashicorp/terraform-cdk>
- **Repository:** <https://github.com/hashicorp/terraform-cdk>
- **Upstream docs:** <https://developer.hashicorp.com/terraform/cdktf>
- **License:** MPL-2.0
- **Source archive:** <https://registry.npmjs.org/cdktf-cli/-/cdktf-cli-0.21.0.tgz>
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- cdktf (cli)
- cdktf (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 0.21.0
- Local data: ok
- Upstream repository: https://github.com/hashicorp/terraform-cdk
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

CDK for Terraform, commonly packaged as cdktf, lets users define Terraform infrastructure with familiar programming languages and then synthesize Terraform configuration.

### Project history

HashiCorp introduced CDK for Terraform as an experimental bridge between Terraform and the construct-based CDK programming model. The official docs now present it as a Terraform workflow with its own CLI, project configuration file, generated provider bindings, and language support.

The official repository is hashicorp/terraform-cdk, while the packaged CLI command is cdktf. The 2026 Homebrew formula packages cdktf 0.21.0.

### Adoption history

CDKTF appealed to Terraform users who wanted loops, classes, libraries, testing patterns, and IDE type support from languages such as TypeScript, Python, Java, C#, and Go, while still targeting Terraform providers and state-oriented workflows.

Its adoption is clearest in the Terraform ecosystem rather than as a replacement for Terraform language itself: teams use it when generated bindings and programming-language abstractions justify the additional build step.

### How it is used

A CDKTF project uses cdktf.json to declare the language, app command, providers, modules, and CLI behavior. Developers run commands such as cdktf get, synth, diff, and deploy around generated Terraform artifacts.

### Why package nerds care

CDKTF is a package-manager crossroads: a Homebrew CLI formula wraps a Node-distributed tool that generates bindings for Terraform providers, so versioning touches npm packaging, Terraform provider constraints, generated code, and HashiCorp's Terraform release cadence.

### Timeline

- 2020: HashiCorp announces CDK for Terraform 0.1.
- 2020s: CDKTF grows language guides, provider/module generation, and a dedicated Terraform docs section.
- 2026: Homebrew formula packages cdktf 0.21.0.

### Related projects

- CDKTF is related to Terraform CLI, Terraform providers and modules, AWS CDK, constructs, and cdk8s through the shared CDK/construct programming model.

### Sources

- <https://api.github.com/repos/hashicorp/terraform-cdk>
- <https://github.com/hashicorp/terraform-cdk>
- <https://developer.hashicorp.com/terraform/cdktf>
- <https://developer.hashicorp.com/terraform/cdktf/create-and-deploy/configuration-file>
- <https://formulae.brew.sh/api/formula/cdktf.json>


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./cdktf.json
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cdktf
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [pug](https://www.automicvault.com/pkg/brew/pug/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [terracognita](https://www.automicvault.com/pkg/brew/terracognita/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [aiac](https://www.automicvault.com/pkg/brew/aiac/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [cf-terraforming](https://www.automicvault.com/pkg/brew/cf-terraforming/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [cf2tf](https://www.automicvault.com/pkg/brew/cf2tf/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [kuzco](https://www.automicvault.com/pkg/brew/kuzco/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [sceptre](https://www.automicvault.com/pkg/brew/sceptre/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, python.
- [terraform-cleaner](https://www.automicvault.com/pkg/brew/terraform-cleaner/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [cdktf-cli](https://www.automicvault.com/pkg/npm/cdktf-cli/) - Executable or command metadata overlaps with this package. Shared terms: cdktf, cli, cloud, cloud-infrastructure, infrastructure.

## Combined YAML source

View the package source record on GitHub. [combined/cdktf.yml](https://github.com/automic-vault/db/blob/main/combined/cdktf.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
