--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
--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.
Example output
Example output
0 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
--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.
Example output
Example output
0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.
octolens notifications list
List your notifications (feed → destination delivery rules)
Flags
Examples
--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.
Example output
Example output
0 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
--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:
0 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
--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:
0 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
--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.
Example output
Example output
0 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
--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:
0 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
--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:
0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.
octolens slack status
Show the workspace’s Slack connection status
Examples
--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:
0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.