---
schema_version: "1"
id: 3abddbb3cfcef6cc09f0ccf9f986fc88c1c7e6c14b2de484ce4f306d7f44640e
title: Disable Salesforce CLI Data Collection and Metrics
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfdx-setup/guides/sfdx-dev/workspace-setup/sfdx-dev-cli-telemetry.md
canonical_url: https://developer.salesforce.com/docs/platform/sfdx-setup/guide/sfdx-dev-cli-telemetry.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9272bd292290c503d3a77a903b88b48a798fa5cf56e49c176773e952b927d20f
products:
  - Salesforce CLI Setup Guide
  - salesforcedx
---

# Disable Salesforce CLI Data Collection and Metrics

Salesforce collects usage data and metrics (telemetry) to help improve Salesforce CLI. We collect anonymous information related to the use of Salesforce CLI and plugins, such as which commands and flags were run, and performance and error data.

We use these data to improve the CLI by looking at trends in command executions and how the CLI is configured. We also research error data to improve the CLI and to create efficiencies in our work (and yours). You’re automatically enrolled in telemetry when you use the CLI.

If you would prefer to opt out of telemetry, set the `disableTelemetry` configuration variable to `true`.

```nolang
sf config set disable-telemetry=true --global
```

Alternatively, you can opt out by setting the environment variable: `SF_DISABLE_TELEMETRY=true`.
