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 notifications create

Create a notification on a feed (flags for agents, a guided wizard on a TTY) Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation POST /api/v2/notifications. Without --json: A terminal prints a confirmation line and the created notification’s detail panel.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE · 8 CANCELLED. The full map is on Exit codes.

octolens notifications get

Get a single notification by id Arguments Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/notifications/{id}. Without --json: A terminal renders the notification’s detail panel: feed, destinations, cadence.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens notifications list

List your notifications (feed → destination delivery rules) Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/notifications. Without --json: A terminal renders each notification with its destinations; piped stdout emits one tab-delimited record per notification.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens notifications rm

Delete a notification by id (the feed is not affected) Arguments Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation DELETE /api/v2/notifications/{id}. Without --json: A terminal prints one confirmation line. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE · 8 CANCELLED. The full map is on Exit codes.

octolens notifications test

Send a real test delivery to every destination and report the outcome Arguments Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation POST /api/v2/notifications/{id}/test. Without --json: A terminal renders one line per destination with its outcome. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens notifications update

Update a notification (name, feed, enable/disable, destinations) Arguments Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation PATCH /api/v2/notifications/{id}. Without --json: A terminal prints a confirmation line and the notification’s detail panel after the update.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens slack channels

Search the workspace’s Slack channels (feeds a notification’s —slack) Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/integrations/slack/channels. Not connected is an ERROR (SLACK_NOT_CONNECTED, exit 2), never an empty list — an empty data unambiguously means connected-but-nothing-matched. Without --json: A terminal renders the channel list; piped stdout emits one tab-delimited record per channel. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens slack connect

Connect Slack via the browser OAuth flow, then wait for it to go live Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/integrations/slack. When Slack is already connected, the command answers the bare status (no authorizeUrl), identical to slack status. Otherwise it reports the OAuth URL plus the status after waiting up to --timeout seconds for the browser flow to complete (--timeout 0 skips the wait). Without --json: A terminal prints the OAuth URL, polls until connected or timed out, then renders the status. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens slack status

Show the workspace’s Slack connection status Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/integrations/slack. Without --json: A terminal renders the connection status and linked workspace name. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.