---
title: "CLI v1.32.0: Usage telemetry, with separate controls for usage and errors"
description: "The Cloudsmith CLI now sends pseudonymous data about which commands, options, and setups are used.  Usage telemetry is on by default, including in CI. New settings turn usage data and error reports on or off separately, and the new 'cloudsmith telemetry' commands show your current settings."
canonical_url: "https://cloudsmith.com/changelog/cli-v1-32-0"
last_updated: "2026-11-26T16:30:06.134Z"
---
# CLI v1.32.0: Usage telemetry, with separate controls for usage and errors

The Cloudsmith CLI now sends pseudonymous data about which commands, options, and setups are used.

Usage telemetry is on by default, including in continuous integration (CI). New settings turn usage data and error reports on or off separately, and the new `cloudsmith telemetry` commands show your current settings.

```json
{
  "_key": "3cc3e007f0f8",
  "_type": "callout",
  "content": [
    {
      "_key": "21120cc540c2",
      "_type": "block",
      "children": [
        {
          "_key": "a09840870505",
          "_type": "span",
          "marks": [
            "strong"
          ],
          "text": "Note:"
        },
        {
          "_key": "3033b428c7bd",
          "_type": "span",
          "marks": [],
          "text": "\nUpgrading to v1.32.0 enables usage telemetry unless you have already turned telemetry off. In CI and scripts, there is no first-run notice, so if you want it off in a pipeline, set it before you upgrade."
        }
      ],
      "markDefs": [],
      "style": "normal"
    }
  ],
  "markDefs": null,
  "variant": "warning"
}
```

## **Usage telemetry**

After each command, the CLI sends one event to Cloudsmith through [PostHog](https://posthog.com/), a product analytics service hosted in the European Union (EU).

An event contains:

- **Command:** the command name, the names of the options and environment variables that you set, the output format, how the command ended, and how long it took.
- **Setup:** where the credential and each setting came from (for example, an option, an environment variable, or a config file), and the names of the keys set in `config.ini` and `credentials.ini`.
- **Environment:** the CLI version and install method, the operating system, the CPU architecture, the Python version, and whether a CI system or an AI coding agent ran the command.

The CLI never sends option or argument values, file names, credentials, workspace, repository, or package names, or hostnames. PostHog discards the IP address, and events are not linked to your account.

```json
{
  "_key": "399fdf1f7e2c",
  "_type": "callout",
  "content": [
    {
      "_key": "6f99376936cc",
      "_type": "block",
      "children": [
        {
          "_key": "8bf18a3d8f96",
          "_type": "span",
          "marks": [],
          "text": "PostHog deletes events after 12 months. Because the cleanup job runs monthly, an event can remain for up to 13 months."
        }
      ],
      "markDefs": [],
      "style": "normal"
    }
  ],
  "markDefs": null,
  "variant": "info"
}
```

To count repeat use from the same machine, the CLI stores a random install ID in its config directory. In CI, in containers, and in the Docker image, it stores nothing. To store no ID at all, set `CLOUDSMITH_TELEMETRY_INSTALL_ID=disable`.

For the full list of what is collected, see [CLI telemetry](https://docs.cloudsmith.com/developer-tools/cli-telemetry) in the Cloudsmith documentation.

The first time you run a command in a terminal after upgrading to v1.32.0 or later, the CLI shows a notice and sends nothing for that command:

```json
{
  "_key": "1f9a065340ea",
  "_type": "code",
  "code": "The Cloudsmith CLI collects pseudonymous usage data to help improve the CLI. It never collects argument values, file names or credentials.\n\nRead what is collected (and how to opt out): https://docs.cloudsmith.com/developer-tools/cli-telemetry \n\nNothing was sent for this command.\n",
  "filename": null,
  "language": "shell",
  "markDefs": null
}
```

### **Turn off usage telemetry or error reporting**

Configure usage telemetry and error reports separately with the following environment variables and `config.ini` keys:

```json
{
  "_key": "069c4807ffc1",
  "_type": "tableBlock",
  "firstRowIsHeader": true,
  "markDefs": null,
  "table": {
    "rows": [
      {
        "_key": "21b32716-aa69-4ddf-85a3-b6f94642a95b",
        "_type": "tableRow",
        "cells": [
          "Environment variable",
          "config.ini key",
          "Controls"
        ]
      },
      {
        "_key": "019166ab-ff4e-4a0e-951f-11b24e509e24",
        "_type": "tableRow",
        "cells": [
          "CLOUDSMITH_TELEMETRY_USAGE_REPORTING",
          "telemetry_usage_reporting",
          "Usage telemetry"
        ]
      },
      {
        "_key": "714f14ee-f028-45cb-98c7-d5b80d6d458c",
        "_type": "tableRow",
        "cells": [
          "CLOUDSMITH_TELEMETRY_ERROR_REPORTING",
          "telemetry_error_reporting",
          "Error reports"
        ]
      },
      {
        "_key": "1678664c-563f-4082-9fb3-82306ec51105",
        "_type": "tableRow",
        "cells": [
          "CLOUDSMITH_TELEMETRY",
          "telemetry",
          "Both usage telemetry and error reports"
        ]
      }
    ]
  }
}
```

Set them to `enable`, `disable`, or `log`. With `log`, the CLI prints what it would send to stderr and sends nothing. For example, to turn off usage telemetry in a CI pipeline:

```json
{
  "_key": "358bad041167",
  "_type": "code",
  "code": "env:  \n  CLOUDSMITH_TELEMETRY_USAGE_REPORTING: \"disable\"  ",
  "filename": null,
  "language": null,
  "markDefs": null
}
```

If you already turned off error reporting with `CLOUDSMITH_NO_TELEMETRY=1`, `DO_NOT_TRACK=1`, or `telemetry = false` in `config.ini`, you don't need to change anything: these settings now turn off usage telemetry too.

To check your settings, run `cloudsmith telemetry status`:

```json
{
  "_key": "233665c9d9a2",
  "_type": "code",
  "code": "$ cloudsmith telemetry status  \n\nUsage reporting: disabled (CLOUDSMITH_TELEMETRY_USAGE_REPORTING)  \nError reporting: enabled (default)  \nInstall ID: enabled (default)  ",
  "filename": null,
  "language": null,
  "markDefs": null
}
```

`cloudsmith telemetry id` shows the stored install ID, and `cloudsmith telemetry reset` deletes it.

For a more detailed list of changes, see the [changelog on GitHub](https://github.com/cloudsmith-io/cloudsmith-cli/blob/master/CHANGELOG.md).
