# About CLI telemetry

Site [llms.txt](/llms.txt)

---

From v1.0.0, our CLI has an **opt-out** telemetry system that collects data in cases such as:

* Crashes
* Specific and predetermined situations we want to collect information about

The data we collect includes:

* Crash data localized to the CLI
  * Stack traces
  * Local variables
* Information about the execution environment, such as OS version and CLI install location
* IP address

Only the CLI process is instrumented in this manner. We do not instrument your code for the sake of collecting telemetry. However, it is possible some limited information about your software or its outputs may be transmitted if there is a crash while it is being processed.

The data is collected using [sentry](https://crates.io/crates/sentry), which is only activated if telemetry is enabled.

## Usage scope

We use this telemetry for early discovery of bugs without relying solely on users reporting them. We may also use it to collect usage information relating to situations such as UX issues, features we believe to be unused, fallback logic/graceful error handling, and other things we may target for later improvement.

## Telemetry storage

Telemetry is stored in [GlitchTip](https://eu.glitchtip.com/)'s EU instance. It is retained for [90 days](https://glitchtip.com/documentation/hosted-architecture#application-security) + up to 35 days in backups. See their [documentation on data security](https://glitchtip.com/documentation/hosted-architecture) for more information.

## Disabling telemetry

Telemetry can be disabled in your `~/.artefacts/telemetry.toml` file. An example:

```
telemetry_consent = false
```

You can also set the environment variable `NO_TELEMETRY` to any value. For example, on Linux:

```
export NO_TELEMETRY=1
```

On Windows PowerShell:

```
$env:NO_TELEMETRY = "1"
```

If the telemetry configuration cannot be read or parsed, telemetry is disabled until the file is fixed.
