Skip to content

CLI

The Octo CLI (oneocto) is a registry-driven command-line interface for discovering, inspecting, and managing Octo resources from a terminal or an agent runtime.

Everything the CLI returns is JSON, and the CLI describes its own capabilities. That makes one interface serve two readers: a person working at a prompt, and an AI agent deciding what to do next.

TermDefinition
ResourceA record type the CLI can operate on, such as workflows, tools, or interactions.
VerbThe action applied to a resource: list, get, create, update, delete.
RegistryThe CLI’s internal catalog of resources, their verbs, aliases, and examples. It is the source of truth for what the CLI supports.
TenantA saved login pointing at one Octo deployment. The CLI can hold several and default to one.
SpaceThe scope most resources live in. Save a default space so you can stop passing --space-id.
FlowA code-defined procedure that owns both the ordering and the mechanical details of a multi-step operation.
ActionDescription
DiscoverAsk the CLI what resources exist, what verbs they support, and how to build them.
Read and writeRun the canonical CRUD verbs against any supported resource.
Run flowsPublish, revise, export, audit, and diagnose workflows through code-defined flows.
ExecuteRun workflows, interactions, agents, prompts, and individual tools directly.
OperateManage schedules, telephony provisioning, billing, and system health.
  1. Install the CLI with npm install -g @appbox.ai/oneocto-cli (Node 22 or newer).
  2. Sign in with oneocto auth login --url https://your-tenant.oneocto.com.
  3. Pick a default space with oneocto list spaces, then oneocto tenant use.
  4. Confirm the session with oneocto auth whoami.
  5. Ask the CLI what it supports with oneocto resources.
Terminal window
oneocto list workflows --tabular

The CLI is the source of truth for what it supports, so there is no need to guess a resource name, a verb, or a field:

Terminal window
oneocto about # what this is and how it is organized
oneocto resources # every resource, its aliases and supported verbs
oneocto describe <resource> # the operational contract: verbs, fields, examples
oneocto explain <resource> # deeper guidance, pitfalls, related resources

describe answers whether a resource is space-scoped and which verbs it accepts. explain covers how to think about the resource and links to longer-form guidance.

Do I need an API key to use the CLI? No. The CLI authenticates as a user through oneocto auth login and stores credentials in your OS keychain. API keys are for external systems calling the platform directly.

Is the CLI a replacement for the console? No. It covers the same resources but suits automation, scripting, and agent runtimes. Visual work such as arranging a workflow canvas still belongs in the Workflow Builder.

Why does every command print JSON? So output stays parseable by scripts and agents. Use --tabular when you want to read a list at a glance.