Usage
Aliases
apply
Description
Thedeploy command synthesizes your configuration and runs terraform apply to create, update, or delete infrastructure resources.
Options
| Option | Type | Description | Default |
|---|---|---|---|
--app | string | Command to run the tfts app | From cdktf.json |
--output | string | Output directory | cdktf.out |
--skipSynth | boolean | Skip synthesis step | false |
--autoApprove | boolean | Skip interactive approval | false |
--target | string | Target specific resources (repeatable) | - |
Examples
Basic Usage
Specific Stack
Auto-Approve (CI/CD)
Skip the interactive approval prompt:Skip Synthesis
Use when you’ve already runtfts synth:
Target Specific Resources
Deploy only specific resources:CI/CD Usage
For automated deployments:Automatic Initialization
If the stack hasn’t been initialized,tfts deploy automatically runs terraform init before applying.