@convai/analytics-cli
v0.2.5
Published
CLI for the Convai analytics API.
Maintainers
Readme
convai-analytics CLI
Command-line interface to the Convai analytics API. Wraps @convai/analytics.
npm install -g @convai/analytics-cli
# or run without installing:
npx -y @convai/analytics-cli --help
export CONVAI_API_KEY=ck_live_...
convai-analytics summary --range last_24h
convai-analytics interaction int_8a31abcd1234 --json
convai-analytics session s_8a31abcd1234 --jsonRun convai-analytics --help for the full command list.
Why the CLI exists
- Quick checks that don't need a full script.
- Shell pipelines — pipe JSON output into
jq/gron/vd. - Coding agents that prefer running commands over importing libraries. Some agents are happier shelling out than reasoning about TypeScript imports; the CLI gives them a unified surface.
The CLI is a thin wrapper. For agent workflows, prefer @convai/analytics-mcp; for custom application code, prefer the SDK directly.
