The AWS Cloud Development Kit (CDK) comes with numerous CLI commands.
Command | Function |
---|---|
cdk list (ls) | Lists the stacks in the application |
cdk synthesize (synth) | Synthesizes and prints the AWS CloudFormation template for the specified stack or stacks |
cdk bootstrap | Deploys the AWS CDK Toolkit stack, required to deploy stacks containing assets |
cdk deploy | Deploys the specified stacks |
cdk destroy | Destroys the specified stacks |
cdk diff | Compares the specified stack with the deployed stack or a local AWS CloudFormation template |
cdk metadata | Displays metadata about the specified stack |
cdk init | Creates a new AWS CDK project in the current directory from a specified template |
cdk context | Manages cached context values |
cdk docs (doc) | Opens the AWS CDK API reference in your browser |
cdk doctor | Checks your AWS CDK project for potential problems |
Learn more about AWS CDK here , or read the Official Guides here .