|
11 | 11 |
|
12 | 12 | The AWS CDK Toolkit provides the `cdk` command-line interface that can be used to work with AWS CDK applications. This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project. |
13 | 13 |
|
14 | | -| Command | Description | |
15 | | -| ------------------------------------- | --------------------------------------------------------------------------------- | |
16 | | -| [`cdk docs`](#cdk-docs) | Access the online documentation | |
17 | | -| [`cdk init`](#cdk-init) | Start a new CDK project (app or library) | |
18 | | -| [`cdk list`](#cdk-list) | List stacks and their dependencies in an application | |
19 | | -| [`cdk synth`](#cdk-synth) | Synthesize a CDK app to CloudFormation template(s) | |
20 | | -| [`cdk diff`](#cdk-diff) | Diff stacks against current state | |
21 | | -| [`cdk deploy`](#cdk-deploy) | Deploy a stack into an AWS account | |
22 | | -| [`cdk rollback`](#cdk-rollback) | Roll back a failed deployment | |
23 | | -| [`cdk import`](#cdk-import) | Import existing AWS resources into a CDK stack | |
24 | | -| [`cdk migrate`](#cdk-migrate) | Migrate AWS resources, CloudFormation stacks, and CloudFormation templates to CDK | |
25 | | -| [`cdk watch`](#cdk-watch) | Watches a CDK app for deployable and hotswappable changes | |
26 | | -| [`cdk destroy`](#cdk-destroy) | Deletes a stack from an AWS account | |
27 | | -| [`cdk bootstrap`](#cdk-bootstrap) | Deploy a toolkit stack to support deploying large stacks & artifacts | |
28 | | -| [`cdk gc`](#cdk-gc) | Garbage collect assets associated with the bootstrapped stack | |
29 | | -| [`cdk doctor`](#cdk-doctor) | Inspect the environment and produce information useful for troubleshooting | |
30 | | -| [`cdk acknowledge`](#cdk-acknowledge) | Acknowledge (and hide) a notice by issue number | |
31 | | -| [`cdk notices`](#cdk-notices) | List all relevant notices for the application | |
32 | | -| [`cdk refactor`](#cdk-refactor) | Moves resources between stacks or within the same stack | |
33 | | -| [`cdk drift`](#cdk-drift) | Detect drifts in the given CloudFormation stack(s) | |
| 14 | +| Command | Description | |
| 15 | +| ---------------------------------------- | --------------------------------------------------------------------------------- | |
| 16 | +| [`cdk docs`](#cdk-docs) | Access the online documentation | |
| 17 | +| [`cdk init`](#cdk-init) | Start a new CDK project (app or library) | |
| 18 | +| [`cdk list`](#cdk-list) | List stacks and their dependencies in an application | |
| 19 | +| [`cdk synth`](#cdk-synth) | Synthesize a CDK app to CloudFormation template(s) | |
| 20 | +| [`cdk diff`](#cdk-diff) | Diff stacks against current state | |
| 21 | +| [`cdk deploy`](#cdk-deploy) | Deploy a stack into an AWS account | |
| 22 | +| [`cdk rollback`](#cdk-rollback) | Roll back a failed deployment | |
| 23 | +| [`cdk import`](#cdk-import) | Import existing AWS resources into a CDK stack | |
| 24 | +| [`cdk migrate`](#cdk-migrate) | Migrate AWS resources, CloudFormation stacks, and CloudFormation templates to CDK | |
| 25 | +| [`cdk watch`](#cdk-watch) | Watches a CDK app for deployable and hotswappable changes | |
| 26 | +| [`cdk destroy`](#cdk-destroy) | Deletes a stack from an AWS account | |
| 27 | +| [`cdk bootstrap`](#cdk-bootstrap) | Deploy a toolkit stack to support deploying large stacks & artifacts | |
| 28 | +| [`cdk gc`](#cdk-gc) | Garbage collect assets associated with the bootstrapped stack | |
| 29 | +| [`cdk doctor`](#cdk-doctor) | Inspect the environment and produce information useful for troubleshooting | |
| 30 | +| [`cdk acknowledge`](#cdk-acknowledge) | Acknowledge (and hide) a notice by issue number | |
| 31 | +| [`cdk notices`](#cdk-notices) | List all relevant notices for the application | |
| 32 | +| [`cdk refactor`](#cdk-refactor) | Moves resources between stacks or within the same stack | |
| 33 | +| [`cdk drift`](#cdk-drift) | Detect drifts in the given CloudFormation stack(s) | |
| 34 | +| [`cdk cli-telemetry](#cdk-cli-telemetry) | Enable or disable cli telemetry collection | |
34 | 35 |
|
35 | 36 | ## Common topics |
36 | 37 |
|
@@ -1213,6 +1214,31 @@ $ # Detect drift against the currently-deployed stack with the verbose flag enab |
1213 | 1214 | $ cdk drift --verbose |
1214 | 1215 | ``` |
1215 | 1216 |
|
| 1217 | +### `cdk cli-telemetry` |
| 1218 | + |
| 1219 | +Enables or disables cli telemetry collection for your local CDK App. Records your |
| 1220 | +choice in `cdk.context.json`. You can also set your preference manually under the `context` key in your |
| 1221 | +`~/.cdk.json` file or `<app-root>/cdk.json` file. |
| 1222 | + |
| 1223 | +```bash |
| 1224 | +$ # Disable telemetry |
| 1225 | +$ cdk cli-telemetry --disable |
| 1226 | + |
| 1227 | +$ # Enable telemetry |
| 1228 | +$ cdk cli-telemetry --enable |
| 1229 | +``` |
| 1230 | + |
| 1231 | +You can also check the current status on whether your CDK App is opted in or out of |
| 1232 | +cli telemetry collection. Note that this takes into account all methods of disabling |
| 1233 | +cli telemetry, including environment variables and |
| 1234 | +[context values](https://docs.aws.amazon.com/cdk/v2/guide/context.html) |
| 1235 | +that can be set in many different ways (such as `~/.cdk.json`). |
| 1236 | + |
| 1237 | +```bash |
| 1238 | +$ # Check the current status of telemetry |
| 1239 | +$ cdk cli-telemetry --status |
| 1240 | +``` |
| 1241 | + |
1216 | 1242 | ## Global Options |
1217 | 1243 |
|
1218 | 1244 | ### `unstable` |
|
0 commit comments