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.

Note:
Upgrading 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.

Usage telemetry

After each command, the CLI sends one event to Cloudsmith through PostHog, 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.

PostHog deletes events after 12 months. Because the cleanup job runs monthly, an event can remain for up to 13 months.

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

The Cloudsmith CLI collects pseudonymous usage data to help improve the CLI. It never collects argument values, file names or credentials.

Read what is collected (and how to opt out): https://docs.cloudsmith.com/developer-tools/cli-telemetry 

Nothing was sent for this command.

Turn off usage telemetry or error reporting

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

Environment variableconfig.ini keyControls
CLOUDSMITH_TELEMETRY_USAGE_REPORTINGtelemetry_usage_reportingUsage telemetry
CLOUDSMITH_TELEMETRY_ERROR_REPORTINGtelemetry_error_reportingError reports
CLOUDSMITH_TELEMETRYtelemetryBoth 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:

env:  
  CLOUDSMITH_TELEMETRY_USAGE_REPORTING: "disable"  

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:

$ cloudsmith telemetry status  

Usage reporting: disabled (CLOUDSMITH_TELEMETRY_USAGE_REPORTING)  
Error reporting: enabled (default)  
Install ID: enabled (default)  

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.

Keep up to date with our monthly product bulletin