Skip to content

Commit 4f2d41b

Browse files
Add context element to instructions for opting out of CLI telemetry in .cdk.json
1 parent 2a71d50 commit 4f2d41b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

v2/guide/cli-telemetry.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,14 @@ Set `cli-telemetry: false` in an application's `cdk.json` file. This disables te
6060

6161
*To opt out using the global configuration file*
6262

63-
Set `cli-telemetry: false` in the `~/.cdk.json` file to disable telemetry for all CDK applications on the same computer.
63+
Set `cli-telemetry: false` in the `~/.cdk.json` file to disable telemetry for all CDK applications on the same computer. You must specify this setting inside a context element as follows:
64+
----
65+
{
66+
"context": {
67+
"cli-telemetry": false
68+
}
69+
}
70+
----
6471

6572
[#telemetry-environment-variable]
6673
=== Opt out using an environment variable

0 commit comments

Comments
 (0)