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 billing

Show your plan + usage; —web opens the subscription page in the browser Examples
Returns With --json, stdout carries one JSON document with these fields. Composed from the workspace read and the usage read (no single backing endpoint). 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 usage object additionally carries searches ({used, limit, remaining}) — the lifetime on-demand search allowance (it never resets), read from the canonical quota method; it is absent on every other plan. Without --json: A terminal renders the plan line, the usage block, and the billing-page URL.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens company get

Show the monitored company profile Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/org/company. Without --json: A terminal renders the monitored company profile.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens company update

Update the monitored company profile (name, description, AI guidelines) Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation PATCH /api/v2/org/company. Without --json: A terminal prints a confirmation line and the profile after the update.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens members invitations

List invitations that haven’t been accepted yet Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/org/members/invitations. Without --json: A terminal renders an aligned invitation table; piped stdout emits one tab-delimited record per invitation. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens members invite

Invite a member by email (admin only) Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation POST /api/v2/org/members/invite. Without --json: A terminal prints one confirmation line naming the invitee and role. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens members list

List the organization’s members Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/org/members. Pending invitations are NOT in this list — read members invitations for those. Without --json: A terminal renders an aligned member table; piped stdout emits one tab-delimited record per member.
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens members rm

Remove a member or revoke a pending invitation (admin only; confirms on a TTY, —yes headless) Arguments Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation DELETE /api/v2/org/members/{id}. Without --json: A terminal prints one confirmation line naming what was removed or revoked. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE · 8 CANCELLED. The full map is on Exit codes.

octolens org get

Show the authenticated workspace (name, plan, platforms) Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/org. Without --json: A terminal renders the workspace’s settings panel. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens org update

Update workspace settings (name, monitored platforms) Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation PATCH /api/v2/org. Without --json: A terminal prints a confirmation line and the workspace’s settings after the update. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens org usage

Show mention/keyword usage against your plan limits Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation GET /api/v2/org/usage. 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 usage object additionally carries searches ({used, limit, remaining}) — the lifetime on-demand search allowance (it never resets), read from the canonical quota method; it is absent on every other plan. Without --json: A terminal renders the usage block with plan, mention and keyword meters. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.

octolens upgrade

Open the upgrade page already signed in (single-use link; on a paid plan it opens billing) Flags Examples
Returns With --json, stdout carries one JSON document with these fields. Backed by the v2 API operation POST /api/v2/org/upgrade-link. The v2 response (createUpgradeLink) plus the CLI-local opened flag. The link is minted for the calling credential’s user and every mint is audit-logged server-side. Without --json: A terminal prints the single-use URL, its expiry, and — on an interactive TTY without --no-browser — opens it in the default browser. Example output:
Exit codes0 OK · 1 UNEXPECTED · 2 USAGE. The full map is on Exit codes.