beads/website/docs/cli-reference/metrics.md
Julian Knutsen 26be6aa94c
fix(cli): handle unchecked output-helper errors + regen metrics CLI docs (#4482)
#4419's RunE refactor turned main CI red on two checks (Lint + 'Check doc
flags freshness'):

- golangci-lint errcheck flagged previously-unchecked error returns from the
  output helpers in the files #4419 touched (compact.go, create_proxied_server.go,
  dolt.go, restore.go). Wrap outputJSON/emitGraphApplyDryRun so a genuine
  encode failure is surfaced to stderr instead of silently dropped.
- For the three outputJSONError sites in 'bd dolt remote add/list/remove',
  discard the return explicitly (_ =): outputJSONError always returns the
  &exitError{Code:1} sentinel after writing the JSON envelope, and the
  following os.Exit(1) sets the exit code -- logging it would corrupt the
  stderr JSON-error contract for --json consumers. (Caught by red-team review.)
- Regenerate website/docs/cli-reference/metrics.md (the only stale generated
  doc; CLI_REFERENCE.md + llms-full.txt verified already in sync).

go build / go vet / gofmt / golangci-lint (0 errcheck) / check-doc-flags all pass.

Co-authored-by: CI Bot <ci@beads.test>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 02:18:01 -07:00

1.1 KiB

id title slug sidebar_position
metrics bd metrics /cli-reference/metrics 999

Generated from bd help --doc metrics

bd metrics

Show whether anonymous usage metrics are on, see exactly what is sent, and turn them on or off.

bd shares anonymous usage metrics to learn how people actually use it — just which commands get run, plus the bd version and OS platform. That's how we decide what to polish next. We never collect your issues, paths, remotes, identity, or any user-supplied text.

bd metrics show the current status and what is collected bd metrics on turn metrics on bd metrics off turn metrics off bd metrics example show real examples of the events bd sends

bd metrics [flags]

bd metrics example

Show real examples of the anonymous metrics bd sends

bd metrics example [flags]

bd metrics off

Turn anonymous usage metrics off

bd metrics off [flags]

bd metrics on

Turn anonymous usage metrics on

bd metrics on [flags]