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 mentions by-author

List an author’s mentions on a single platform Arguments Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/mentions/by-author. Without --json: A terminal renders the same mention stream as mentions list. Piped (non-TTY) stdout without --json emits one tab-delimited record per mention: age, source, relevance, sentiment, author, sourceId, url, headline.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens mentions engage

Set (or toggle) the engaged-with flag on a mention Arguments Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation PATCH /api/v2/mentions/{sourceId}. Without --json: A terminal prints one confirmation line naming the new state. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens mentions export

Export filtered mentions to a CSV/JSON file or stdout Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation POST /api/v2/mentions/export. This is the stdout body for --format json with no --output. With --output FILE the body goes to the file and stdout carries a one-line summary document instead — {"file", "total", "format"}, plus a warning field when the export matched nothing. --format csv emits CSV rows, not JSON. Without --json: A terminal run with --output prints a one-line summary of what was written where.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens mentions get

Get a single mention by its sourceId (or its numeric id) Arguments Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/mentions/{sourceId}. Without --json: A terminal renders a detail panel: headline, addressing pair, classification rows, and the word-wrapped body.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens mentions list

List mentions from your feed, filtered and paginated Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation POST /api/v2/mentions. --limit/--all page client-side, so the emitted data already holds every requested row. Without --json: A terminal renders a readable mention stream (headline, source, relative date, sentiment). Piped (non-TTY) stdout without --json emits one tab-delimited record per mention: age, source, relevance, sentiment, author, sourceId, url, headline.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens mentions update

Override a mention’s relevance and/or sentiment (triage) Arguments Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation PATCH /api/v2/mentions/{sourceId}. The payload is the COMMITTED state read back from the update, not an echo of the flags — --relevance clear reports whatever classification the AI verdict restored. Without --json: A terminal prints one confirmation line with the same committed values. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE · 8 CANCELLED. The full map is on Exit codes. Search any phrase across your enabled platforms — one-time, AI-scored (results never join your mentions feed) Arguments Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation POST /api/v2/search. This is the v2 completed-search envelope, byte-identical whether the search finished synchronously or the CLI polled an async (202) search to completion. The low-quota warning (Agents plan, below threshold) rides on STDERR — as one JSON object under --json — never inside this document. Without --json: A terminal renders each result in the mentions list stream layout, ranked by relevance, then a dim stats footer (132 raw matches → 41 after relevance · 38 mentions consumed · 3 sources searched). Piped stdout emits the same tab-delimited record per result as mentions list, and nothing else.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.