Skip to main content
The tfts CLI provides commands to manage your infrastructure-as-code workflow.

Installation

The CLI is included when you install tfts:
npm install tfts

Usage

npx tfts <command> [options]

Available Commands

CommandDescription
getGenerate provider and module bindings
synthSynthesize Terraform JSON configuration
diffShow planned infrastructure changes
deployDeploy infrastructure changes
destroyDestroy infrastructure
outputDisplay stack outputs
listList all stacks
force-unlockRelease a stuck state lock

Common Workflow

# 1. Generate provider bindings
npx tfts get

# 2. Synthesize Terraform configuration
npx tfts synth

# 3. Review planned changes
npx tfts diff

# 4. Deploy changes
npx tfts deploy

# 5. View outputs
npx tfts output

Global Options

Most commands support these common options:
OptionDescriptionDefault
--appCommand to run the tfts appFrom cdktf.json
--outputOutput directory for synthesiscdktf.out

Configuration File

Commands read configuration from cdktf.json or tfts.json in your project root. See the Configuration guide for details.