Skip to main content
Flags and arguments below are the contract as the binary states it. The global flags (--json, --timeout, …) apply here too and are documented on Global flags. Error codes are a workspace-global contract, not a per-command one — the taxonomy, and how to read a code that is not in it, is on The error envelope.

octolens analytics keywords

Per-keyword mention volume (bar chart), highest first Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/analytics/keywords. With --keyword, the filter narrows the POSTS the aggregation runs over, so the result is a co-occurrence breakdown: every keyword appearing on the filtered keyword’s posts, that keyword itself included. Without --json: A terminal renders a labelled bar chart, highest first. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens analytics sentiment

Sentiment split (Positive/Neutral/Negative/unknown) Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/analytics/sentiment. Without --json: A terminal renders the sentiment split as a percentage bar chart.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens analytics sources

Per-platform mention volume (bar chart), highest first Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/analytics/sources. Without --json: A terminal renders a per-source bar chart. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens analytics volume

Mention volume over time (sparkline + per-bucket counts) Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/analytics/volume. Without --json: A terminal renders the volume series as a bar chart. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens dashboard

Composite KPI overview: volume trend, top keywords, sentiment split, usage vs plan Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/analytics/dashboard. Each section carries the corresponding focused command’s ROWS directly (the per-section {data: …} envelopes of the raw v2 response are unwrapped). When flex (usage-based) pricing is enabled for the org, the usage object additionally carries flex ({enabled: true, budgetCents, used, resetAt}); it is absent otherwise. On the Agents plan the analytics group — dashboard included — is allowlist-gated (OCT-1537) and answers the UPGRADE_REQUIRED wall (403 → exit 6, with upgradeUrl/upgradeCommand) instead of data; the Agents searches meter lives in org usage / billing (see references/admin.md). Without --json: A terminal renders the composed KPI overview: volume trend, top keywords, sentiment split, usage vs plan.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.