# Install cdktf-cli with npm

CDK for Terraform CLI. Version 0.21.0 via npm; verified 2025-06-04.

## Install

```sh
sudo av install npm:cdktf-cli
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g cdktf-cli
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:cdktf-cli
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/cdktf-cli>
- **Version:** 0.21.0
- **Source summary:** CDK for Terraform CLI
- **Homepage:** <https://github.com/hashicorp/terraform-cdk#readme>
- **Repository:** <https://github.com/hashicorp/terraform-cdk>
- **Upstream docs:** <https://github.com/hashicorp/terraform-cdk#readme>
- **License:** MPL-2.0
- **Source archive:** <https://registry.npmjs.org/cdktf-cli/-/cdktf-cli-0.21.0.tgz>
- **Issue tracker:** <https://github.com/hashicorp/terraform-cdk/issues>
- **Published:** 2025-06-04T16:46:10.094Z
- **Last updated:** 2025-06-04T16:46:10.094Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- cdktf (cli)

## Dependencies

- @cdktf/cli-core
- @cdktf/commons
- @cdktf/hcl-tools
- @cdktf/hcl2cdk
- @cdktf/hcl2json
- @inquirer/prompts
- @sentry/node
- cdktf
- ci-info
- codemaker
- constructs
- cross-spawn
- https-proxy-agent
- ink-select-input
- ink-table
- jsii
- jsii-pacmak
- jsii-rosetta
- minimatch
- node-fetch
- pidtree
- pidusage
- tunnel-agent
- xml-js
- yargs
- yoga-layout-prebuilt
- zod

## Build dependencies

- @cdktf/provider-generator
- @eslint/compat
- @eslint/eslintrc
- @eslint/js
- @skorfmann/ink-confirm-input
- @skorfmann/terraform-cloud
- @types/archiver
- @types/cli-table
- @types/cross-spawn
- @types/detect-port
- @types/fs-extra
- @types/ink-spinner
- @types/jest
- @types/json-schema
- @types/lodash.isequal
- @types/nock
- @types/node
- @types/parse-gitignore
- @types/pidusage
- @types/react
- @types/semver
- @types/stream-buffers
- @types/uuid
- @types/yargs
- chalk
- chokidar
- cli-spinners
- cross-fetch
- detect-port
- esbuild
- esbuild-jest
- eslint
- eslint-config-prettier
- eslint-plugin-prettier
- eslint-plugin-react
- eslint-plugin-react-hooks
- execa
- extract-zip
- fs-extra
- indent-string
- ink
- ink-spinner
- ink-testing-library
- ink-use-stdout-dimensions
- jest
- lodash.isequal
- log4js
- nock
- open
- parse-gitignore
- pkg-up
- react
- semver
- sscaff
- stream-buffers
- strip-ansi
- ts-jest
- tsc-files
- typescript
- typescript-eslint
- utility-types
- uuid

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.21.0
- Package-manager updated: 2025-06-04
- Local data: ok
- Upstream repository: https://github.com/hashicorp/terraform-cdk
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for cdktf-cli. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 0.21.0, Next: 0.21.0-pre.170
- **Version Count:** 1,004
- **Maintainers:** cdktf-team
- **Author:** HashiCorp
- **Publisher:** cdktf-team
- **Integrity:** sha512-hQqNRw6Qs7QvJ4Yet/J1ZjBujCf6nsFqTjUDHfjgjGUg7tD7SeomqqGcAd8Y3yDOso4qr/BZ1/nTBc6MOgX0Uw==
- **Shasum:** 0ce57045fd52818f5579166f76ff743744ebaa86
- **Unpacked Size:** 19,645,719
- **File Count:** 0
- **Created At:** 2020-05-09T01:03:35.114Z
- **Latest Published At:** 2025-06-04T16:46:10.094Z
- **Modified At:** 2025-06-04T16:46:10.307Z


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Matched curated package taxonomy and local package facts.
- [cdktf](https://www.automicvault.com/pkg/brew/cdktf/) - Executable or command metadata overlaps with this package. Shared terms: cdktf, cli, cloud, cloud-infrastructure, infrastructure.
- [cdk8s-cli](https://www.automicvault.com/pkg/npm/cdk8s-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: cdk, cli, cloud, cloud-infrastructure, codemaker.
- [cdktn-cli](https://www.automicvault.com/pkg/npm/cdktn-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: cdk, cdktf, cli, cloud, cloud-infrastructure.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
