Octri

Overview

octri is the command line for your Octri project. It does what the dashboard does: push a spec, build SDKs, publish docs, run your MCP server, and work through the errors your SDKs report from production. Every command has its own page here, with its flags and an example of what it prints.

Install

global
npm install -g @octri/cli
octri --help

It needs Node 20 or newer.

Sign in and pick a project

bash
octri auth login
octri projects use

auth login asks for your email and password, and stores the session in ~/.octri/config.json. projects use shows your projects to pick from. Every later command acts on that project, unless you pass --project <id>.

For CI, use an API key in OCTRI_API_KEY instead of signing in.

A first run

bash
octri specs push ./openapi.yaml
octri sdk build --lang go,typescript --download
octri docs versions publish <specId>

specs push waits for the whole pipeline, not only the upload, so the next command sees the new version. sdk build draws a live lane per language and saves the SDKs when they're done. docs versions publish puts that spec version on your docs site.

How each page reads

Every command page has the same parts:

PartWhat it tells you
UsageThe command with its arguments. Square brackets mean optional
ArgumentsWhat goes after the command, and which are required
FlagsEach option, its type and its default
SubcommandsFor a command with actions, such as docs nav set, each action with its own arguments and flags
ExamplesReal runs, with what the CLI printed

Flags every command takes, such as --json and --project, are on global flags and output rather than repeated on each page. octri <group> --help lists one group's commands in the terminal.

Example output

The examples were run against a test project, so names, IDs and times are sample values. Commands that need a finished SDK build, or that publish something, show the command without its output.

Every command

Sign in and profiles

CommandWhat it does
octri auth loginSign in to Octri and store the session in your profile.
octri auth whoamiPrint the signed-in user, organisation, plan, role and selected project.
octri auth tokenPrint the session's bearer token, for calling the API yourself.
octri auth profilesList the profiles on this machine and which one is in use.
octri auth logoutEnd the session on the server and clear it from this machine.
octri configShow, change and switch profiles: API address, default project and languages.

Projects

CommandWhat it does
octri projects listList the projects in your organisation, marking the selected one.
octri projects useSelect the project later commands act on.
octri projects currentPrint the selected project's ID and the profile it's stored in.
octri projects showPrint one project's ID, slug, description and docs address.
octri projects createCreate a project and select it.

Specs

CommandWhat it does
octri specs pushUpload an OpenAPI spec and follow it through parsing, pages and search.
octri specs importImport a spec from a public URL and follow ingestion.
octri specs listList the project's spec versions, marking the current one.
octri specs statusShow one spec's parse status and every job in the pipeline behind it.
octri specs deletePermanently delete a spec version.
octri specs convertSee whether the current spec came from a conversion, and import or save its report.
octri jobsThe generation queue: what's waiting, running and failed.

SDKs

CommandWhat it does
octri sdk languagesList the languages the generator supports, with the settings each one reads.
octri sdk operationsList the operations the generator parsed from the current spec.
octri sdk settingsRead and change SDK Studio settings, such as retries, naming and auth.
octri sdk validateCheck the current spec against the generator before you spend a build.
octri sdk auditScore the spec for SDK quality, then apply or ignore each finding.
octri sdk quickstartChoose the endpoint every SDK's README leads with.
octri sdk previewGenerate one language without spending a build, and read the files.
octri sdk buildBuild SDKs for the languages you choose and follow each one live.
octri sdk buildsList builds, newest first, with each one's status and languages.
octri sdk watchFollow a running build's lanes until every language settles.
octri sdk artifactsList each language's package from a build, with share links.
octri sdk downloadDownload a build's packages and unpack them to read the source.
octri sdk retryRun a build's failed languages again.
octri sdk publishPublish a build's packages to npm, PyPI and the other registries.
octri sdk reposSee and set up each language's GitHub repository.
octri sdk statsBuild health: durations, and which languages and stages fail most.

Generator lab

CommandWhat it does
octri lab runValidate, build, download and unpack in one command, with a verdict per language.
octri lab runsList the runs kept on this machine for the project.
octri lab pullDownload and keep a build that already ran, so the lab commands can read it.
octri lab filesShow the file tree one language generated in a kept run.
octri lab catPrint one generated file from a kept run.
octri lab diffCompare two kept runs file by file, per language.

Docs

CommandWhat it does
octri docs pagesList, regenerate, retitle and publish the endpoint pages generated from your spec.
octri docs showPrint one endpoint page.
octri docs guidesList, read and publish the guides you've written.
octri docs navPrint, replace and publish the site's navigation, home page and redirects.
octri docs homeChoose the guide served at the root of your docs site.
octri docs redirectsList, add and remove redirect rules from old addresses.
octri docs versionsPublish spec versions to your docs site, label them and pick the default.
octri docs domainServe your docs on your own hostname: set it, see the DNS records, verify, remove.
octri docs themeRead and change appearance: colours, logo, fonts, layout and code themes.
octri docs buttonsAdd and remove the buttons at the right of the top bar.
octri docs socialsSet the social links shown at the bottom of each page.
octri docs seoRead and change your site's search and social metadata.
octri docs feedbackTurn the page feedback widget on or off.
octri docs playgroundConfigure the request playground: on or off, base URL, default auth.
octri docs custom-codeLoad your own CSS and HTML on every docs page.
octri docs componentsPush, show and remove the custom components your pages use.
octri docs endpointsDraft endpoints to add or remove, then publish them into the spec.
octri docs changelogList the API changelog entries generated between spec versions.
octri docs releasesThe API Studio's release history, with what each publish changed.

GitHub

CommandWhat it does
octri github statusShow the connected repository, branch, spec path and when it last synced.
octri github connectPoint the project at a spec file in a GitHub repository.
octri github syncPull the spec from the connected repository now.
octri github auto-syncIngest the spec automatically on every push that changes it.
octri github disconnectDisconnect the repository and remove Octri's webhook from it.
octri github docsPull your repository's Markdown files, or keep page drafts in sync with them.
octri github appCheck whether the project is linked to the Octri GitHub App.

Webhooks

CommandWhat it does
octri webhooks listList the project's webhooks, with type, address and state.
octri webhooks eventsList the events a webhook can carry.
octri webhooks createAdd a webhook for the events you choose, and get its signing secret.
octri webhooks updateChange a webhook's address, events or label, or switch it on or off.
octri webhooks testSend a test.ping delivery to a webhook.
octri webhooks deliveriesA webhook's delivery history: event, status, HTTP code and error.
octri webhooks deleteDelete a webhook and its delivery history.

MCP server

CommandWhat it does
octri mcp toolsList the tools your published MCP server gives agents.
octri mcp usageCount agent calls per tool, split by outcome.
octri mcp callsList the latest tool calls: which tool, when, and how it went.
octri mcp changesThe tool changes agents were told about, release by release.
octri mcp outagesWhich tools sit behind an endpoint your uptime checks see failing.
octri mcp permissionsSee and set what an agent may do with each tool: auto, confirm or off.
octri mcp scoreScore the tools agents are served out of 10, and fail CI below a floor.
octri mcp testHave real models work through sample tasks with your tools, as a dry run.
octri mcp workflowsCheck the workflow tools made from your guides still match them.
octri mcp domainPut the hosted MCP server on your own hostname.
octri mcp installationsServer addresses backed by a stored credential, for a team or a script.
octri mcp connectionsList and sign out the people signed in to the hosted server.
octri mcp auditEvery write an agent attempted, approved or not, filtered and exportable.
octri mcp packageYour MCP server's npm and PyPI packages, plus bundle, Docker and Worker downloads.
octri mcp pluginYour project's Claude Code plugin: install lines, commands, and a download.
octri mcp serveRun the CLI itself as an MCP server, so an assistant can manage your Octri account.

Monitoring

CommandWhat it does
octri monitoring statusShow whether monitoring is on, its environment and ingest address.
octri monitoring enableTurn monitoring on for the project.
octri monitoring disableTurn monitoring off. Events are refused from then on.
octri monitoring configPrint the three values a CI job needs to upload symbols.
octri monitoring test-eventSend one test error through the real ingest path.
octri monitoring summaryThe window's totals: events, errors, error rate and distinct issues.
octri monitoring releasesError rate, new issues and regressions per release.
octri monitoring issuesList errors grouped into issues, filtered by status, level or text.
octri monitoring issueOne issue with its status, release, culprit and stack trace.
octri monitoring resolveMark an issue resolved. If it happens again, it's a regression.
octri monitoring ignoreMark an issue ignored, so it stays out of your list.
octri monitoring reopenPut a resolved or ignored issue back to unresolved.
octri monitoring commentAdd a comment to an issue, under your name.
octri monitoring logsQuery individual events, newest first, when you need every occurrence.
octri monitoring tracesRecent traces, or one trace's spans.
octri monitoring performanceThe slowest transactions with p50 and p95, then suspected N+1 queries.
octri monitoring slosSet latency and error targets per transaction, and fail CI on a breach.
octri monitoring alertsAlert rules: create, test against live data, delete.
octri monitoring checksUptime checks: generate them from your spec and run one now.
octri monitoring incidentsPost incidents and their updates to your public status page.
octri monitoring announcementsBanners on your status page, such as planned maintenance.
octri monitoring sourcemapsUpload JavaScript and Dart source maps so stack traces are readable.
octri monitoring sourcesUpload Go, Rust, JVM and Swift source so stack frames show code.

Organisation and keys

CommandWhat it does
octri orgs listList the organisations you belong to, marking the one you're acting as.
octri orgs switchAct as another organisation you belong to.
octri orgs showThe organisation's plan, limits and SDK languages.
octri orgs usageWhat the organisation has used this billing period, against its limits.
octri orgs billingPlan status and invoices.
octri orgs membersThe organisation's members: change a role, or remove someone.
octri orgs invitesInvite people, and resend or revoke pending invites.
octri keysAPI keys for CI and scripts: create, list and revoke.
Not the CLI inside your SDK

This is Octri's own CLI. It's unrelated to the CLI generated inside your SDK, which is a command-line client for your API that your customers run.