Skip to content

Add opt-in anonymous command counters to the CLI #733

Backlog

Description

@Espoir-Loem

Problem

There is no KPI on which Nexy commands developers actually use, so it is hard to decide what to
improve. Public download figures from #732 cannot say how often nx dev, nx build, nx add or any
other command runs. The developer wants counts only, no sensitive data: country plus invocation count
for every command, and count only for nx start.

Change to make

Add anonymous command counters, off by default and opt-in:

  • opt in with useTelemetry = True in nexyconfig.py or NEXY_TELEMETRY=1; add nx telemetry on,
    nx telemetry off and nx telemetry status, the last one printing the exact payload sent
  • every CLI command records one anonymous invocation of that command. Counters are aggregated
    locally and sent once per day with the command name and its count. The country is added by the
    ingestion endpoint, never by the CLI
  • nx start sends its count without a country. No country, no traffic data and no request data
    from anything served in production
  • no file paths, no command arguments, no source text, no environment values and no machine
    identifier in any payload
  • fire and forget with a 500 ms timeout, silent when offline, skipped in CI, never blocking startup
  • a versioned payload schema shared with the ingestion endpoint in Add an anonymous telemetry endpoint and aggregate KPI API #734

Out of scope

The ingestion endpoint (#734), public figures (#732), production traffic analytics and identifying
users.

Checks

Tests stub the transport and assert no call when the option is off, that every command produces a
counter with its own name, that the nx start payload has no country field, that CI is skipped and
that no path or source text is sent. nx telemetry status has a CLI test. docs/reference/cli.md
and a privacy page list every field and the opt-in, with translations regenerated.

Activity

  1. changed the title [-]Add opt-in anonymous usage counters in nx dev and nx start[/-] [+]Add opt-in anonymous command counters to the CLI[/+] on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions