You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e0fd5c4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -282,8 +282,9 @@ deeper where that reads better, as in `mapbox styles draft get`.
282
282
parameters and sample output.
283
283
284
284
Every API request a command makes sends `User-Agent: mapbox-cli/<version>`
285
-
and nothing else about you or your machine. `MAPBOX_CLI_NO_TELEMETRY=1`
286
-
keeps even future markers out of that header.
285
+
and nothing else about you or your machine. `MAPBOX_CLI_NO_TELEMETRY=1` or
286
+
`mapbox config set telemetry off` keeps even future markers out of that
287
+
header.
287
288
288
289
Each run also sends one event to Mapbox:
289
290
@@ -305,7 +306,7 @@ or your login) when you have one, and with a token built into the CLI
305
306
otherwise; Mapbox Events keeps the token an event was sent with, and the
306
307
account it belongs to, alongside the event. A build from source has no
307
308
built-in token, so with no token of your own the event is dropped.
308
-
`MAPBOX_CLI_NO_TELEMETRY=1` turns it off.
309
+
`MAPBOX_CLI_NO_TELEMETRY=1`or `mapbox config set telemetry off`turns it off.
309
310
310
311
### Diagnostics and settings
311
312
@@ -572,7 +573,7 @@ kept narrow:
572
573
| What it sends | A `GET` for the channel's `latest/manifest.json`, with no token, no account, no command, and nothing about you or your machine beyond `User-Agent: mapbox-cli/<version>`|
573
574
| When | At most once a day, and only when stderr is a terminal, so CI and piped runs never check and never print |
574
575
| Where | A detached background process. Your command never waits on it: offline, the timing is unchanged and nothing is printed |
575
-
| Off |`MAPBOX_NO_UPDATE_CHECK=1`, or `MAPBOX_CLI_NO_TELEMETRY=1`, which silences this too, for the shell session it's set in |
576
+
| Off |`MAPBOX_NO_UPDATE_CHECK=1`, or `MAPBOX_CLI_NO_TELEMETRY=1`, which silences this too, for the shell session it's set in; `mapbox config set telemetry off` silences it for good|
576
577
577
578
`~/.mapbox/update-check.json` (or `$MAPBOX_CONFIG_DIR`) holds the answer
578
579
between runs. A build that names no release channel never checks at all, and
@@ -601,7 +602,7 @@ mapbox history show be40d711 # or one run, by any prefix of its id
601
602
are not recorded. `mapbox config set history off` turns history off for
602
603
good, and `MAPBOX_HISTORY=0` for one shell; with it off, nothing is written
603
604
and no directory is created, but what was already recorded stays until you
604
-
delete `~/.mapbox/history`. `MAPBOX_CLI_NO_TELEMETRY` does not affect it.
605
+
delete `~/.mapbox/history`. Neither telemetry opt-out affects it.
605
606
606
607
### Diagnostic logs
607
608
@@ -669,6 +670,12 @@ our CLIs by setting
669
670
MAPBOX_CLI_NO_TELEMETRY=1
670
671
```
671
672
673
+
or, to turn it off in every shell,
674
+
675
+
```sh
676
+
mapbox config set telemetry off
677
+
```
678
+
672
679
For additional information on our data processing activities and your
Copy file name to clipboardExpand all lines: docs/commands.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4265,6 +4265,7 @@ was set in, and stays in every future shell instead.
4265
4265
|`update-check`|`on`| The update notice; mirrors `MAPBOX_NO_UPDATE_CHECK` (see [Update notices](../README.md#update-notices)) |
4266
4266
|`history`|`on`|[Command history](../README.md#command-history), read by `mapbox history`; `MAPBOX_HISTORY=0` or `=1` overrides it for a session |
4267
4267
|`log`|`off`|[Diagnostic logs](../README.md#diagnostic-logs), shown by `mapbox history show`; `MAPBOX_LOG=1` or `=0` overrides it for a session. Needs `history` on: `config set log on` with history off fails with `history_required`|
4268
+
|`telemetry`|`on`| Telemetry — the run's event, the `User-Agent` markers and the update notice; mirrors `MAPBOX_CLI_NO_TELEMETRY` (see [Privacy](../README.md#privacy)) |
4268
4269
4269
4270
### `mapbox config get`
4270
4271
@@ -4276,7 +4277,7 @@ than failing, the same forgiving read the update-check cache itself uses.
4276
4277
4277
4278
| Parameter | Effect |
4278
4279
| --- | --- |
4279
-
|`<key>`| Which setting to read: `update-check`, `history`or `log`. |
4280
+
|`<key>`| Which setting to read: `update-check`, `history`, `log`or `telemetry`. |
4280
4281
4281
4282
#### Examples
4282
4283
@@ -4315,7 +4316,7 @@ without an environment variable.
4315
4316
4316
4317
| Parameter | Effect |
4317
4318
| --- | --- |
4318
-
|`<key>`| Which setting to change: `update-check`, `history`or `log`. |
4319
+
|`<key>`| Which setting to change: `update-check`, `history`, `log`or `telemetry`. |
4319
4320
|`<value>`|`on` or `off`. |
4320
4321
4321
4322
#### Examples
@@ -4374,6 +4375,7 @@ mapbox config list
4374
4375
update-check on
4375
4376
history on
4376
4377
log off
4378
+
telemetry on
4377
4379
```
4378
4380
4379
4381
</td><td>
@@ -4391,6 +4393,10 @@ log off
4391
4393
{
4392
4394
"key": "log",
4393
4395
"value": false
4396
+
},
4397
+
{
4398
+
"key": "telemetry",
4399
+
"value": true
4394
4400
}
4395
4401
]
4396
4402
```
@@ -4409,7 +4415,7 @@ default, a key explicitly set to the old default value does not.
4409
4415
4410
4416
| Parameter | Effect |
4411
4417
| --- | --- |
4412
-
|`<key>`| Which setting to clear: `update-check`, `history`or `log`. |
4418
+
|`<key>`| Which setting to clear: `update-check`, `history`, `log`or `telemetry`. |
4413
4419
4414
4420
#### Examples
4415
4421
@@ -4703,6 +4709,7 @@ Telemetry: on
4703
4709
"proxy": { "active": [] },
4704
4710
"switches": {
4705
4711
"telemetry_allowed": true,
4712
+
"telemetry_persisted": true,
4706
4713
"update_check_env_opt_out": false,
4707
4714
"update_check_persisted": true
4708
4715
},
@@ -4719,6 +4726,10 @@ Telemetry: on
4719
4726
</td></tr>
4720
4727
</table>
4721
4728
4729
+
In `switches`, `telemetry_allowed` is `MAPBOX_CLI_NO_TELEMETRY` alone and
4730
+
`telemetry_persisted` is `mapbox config set telemetry`; telemetry is on only
4731
+
when both are `true`.
4732
+
4722
4733
With `--verify`, a `connectivity` object joins the JSON and a `Reachable:`
4723
4734
line joins the text — `{ "reachable": true, "status": 200 }`, or `{
4724
4735
"reachable": false }` (plus an `error` field under `--debug`) when the
0 commit comments