Turn off Unity CLI data collection
Turn off usage analytics, the anonymous usage count, crash reports, and automatic update checks in the Unity command-line interface (CLI).
Read time 1 minuteLast updated 4 days ago
Use one command and three environment variables to stop all telemetry and background checks in the Unity CLI. You can turn off each data type independently, or turn off all of them on every developer machine and CI runner. To learn what each data type contains before you turn it off, refer to Unity CLI telemetry data.
Manage usage analytics
To turn usage analytics on or off, or to check its status:
-
Open a terminal.
-
Run one of the following commands:unity analytics opt-in # Turn on usage analyticsunity analytics opt-out # Turn off usage analyticsunity analytics status # Check whether usage analytics is on
When you opt out, the CLI stops sending usage analytics immediately. You can change this setting at any time.
Settings for each data type
To stop | Use |
|---|---|
| Usage analytics | |
| Anonymous usage count | |
| Crash reports | |
Turn off all data collection
To turn off all telemetry on a developer machine or CI runner:
-
Open a terminal.
-
Set the following environment variables:export UNITY_NO_CLI_INVOKED_TELEMETRY=1export UNITY_NO_CRASH_REPORT=1export UNITY_NO_UPDATE_CHECK=1
-
Run.
unity analytics opt-out -
To confirm that usage analytics is off, run.
unity analytics status
Repeat these steps on every developer machine and CI runner.