---
title: Turn off Unity CLI data collection
product: Unity command-line interface (CLI)
canonical: https://docs.unity.com/en-us/unity-cli/data-collection-privacy-controls/turn-off-data-collection
last_updated: 2026-11-06
generated_at: 2026-11-11T23:35:49.606Z
locale: en-us
---

# 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).

> **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](/unity-cli/data-collection-privacy-controls/cli-telemetry-data.md).

## 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:

   ```bash
   unity analytics opt-in    # Turn on usage analytics
   unity analytics opt-out   # Turn off usage analytics
   unity 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:

   ```bash
   export UNITY_NO_CLI_INVOKED_TELEMETRY=1
   export UNITY_NO_CRASH_REPORT=1
   export 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.
