Documentation

Unity command-line interface (CLI)

Download Unity Hub

Unity command-line interface (CLI)

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

Note
This page applies to the Unity CLI beta.17 and later.
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:
  1. Open a terminal.
  2. 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
unity analytics opt-out
Anonymous usage count
UNITY_NO_CLI_INVOKED_TELEMETRY=1
Crash reports
UNITY_NO_CRASH_REPORT=1

Turn off all data collection

To turn off all telemetry on a developer machine or CI runner:
  1. Open a terminal.
  2. Set the following environment variables:
    export UNITY_NO_CLI_INVOKED_TELEMETRY=1export UNITY_NO_CRASH_REPORT=1export UNITY_NO_UPDATE_CHECK=1
  3. Run
    unity analytics opt-out
    .
  4. To confirm that usage analytics is off, run
    unity analytics status
    .
Repeat these steps on every developer machine and CI runner.
Note
On Windows, set the same variables as user or system environment variables.