Skip to main content
Version: 3.0.0

CLI overview

orca is the command-line surface for the Orca Framework runtime: submit a workflow, follow an execution, step in when something needs a person. This page covers what holds for every verb, and which of the other eight pages answers a given question.

Which page do I want​

You want toPage
Start the daemon, mount the package, reload, shut it all downLifecycle
See which devices, locations and workflows are loadedInspect
Submit a workflow and wait for it to finishRun
Find where a plate is, or what is in itMonitor
Work out why a thread is not movingMonitor
Pause, resume, close or stop an executionControl
Skip, insert or replace a method inside a running threadControl
Correct where the system thinks a plate isControl
Send a command straight to a device by handControl
Change a grip height, a teachpoint or an arm defaultControl
Decide what happens to a thread paused on an errorRecover
Handle a device command that overran its timeoutRecover
Read who changed what, and whyForensics
Read everything that happened to one plateForensics
Get new or edited code onto the daemonDeploy

orca ships with the framework, so installing Orca Framework brings it in. Every operation the runtime exposes (submit a workflow, pause an execution, recover from an incident, send a raw command to a device) has a verb here.

The CLI is one of the ways to reach the runtime. All of them drive the same operations:

  • orca CLI: what this section documents.
  • REST and WebSocket: the daemon on 127.0.0.1. Routes are under /api; events stream on /ws/events.
  • Python client: orca.sdk.client. See Runtime.

Everything below talks to the local daemon over its REST API. With --backend cloud (or ORCA_BACKEND=cloud) the same verbs route to an Orca AI deployment instead. The source-available build ships no cloud backend, so there --backend cloud exits 2 with no cloud backend is installed.

In the CLI, orca execution thread ... operates on a labware thread, the subject of Threads.

Grammar​

orca <lifecycle-verb> [args...]      # version, start, status, unload, shutdown, run
orca <noun> <verb> [args...] # topology mount, runtime reload, execution list, ...

Six verbs sit at the top level: start, shutdown, unload, status, version and run. Everything else is a noun followed by a verb.

A system comes up in one step. orca topology mount builds the daemon's package folder: the topology, every workflow in workflows/, and the setup files. After an edit, orca runtime reload builds it again.

A mount does not choose a run mode. Each run chooses its own with orca run --run-mode. See Run modes.

orca --help lists what is visible in the current installation. orca <noun> --help lists the verbs under a noun. orca <noun> <verb> --help shows its flags.

The nouns​

NounWhat it covers
executionExecutions, their threads, and thread-level surgery. Holds the execution thread sub-app.
submissionMulti-group and batched submissions against a workflow. See Submissions.
workflow / method / thread / locationTemplate and location inventory. method execute also lives here.
describeOne-screen detail for a named system, workflow, method, thread, location or device.
deviceDevice inventory, capabilities, bring-up, sim or live setting, setup files, and commands sent by hand. device registry show prints everything known about one device.
labwareLabware instances, the labware-definition catalog, and operator overrides on both. See Labware.
teachpointsPer-transporter teachpoints. Holds the teachpoints labware sub-app for per-labware exceptions at one position.
deck-layoutsPer-liquid-handler deck layouts.
access-configsDeployment-wide access configs.
grip-profilesHow each labware type is held. See Move parameters.
move-defaultsWhat one transporter's moves start from.
varGlobal, execution-scope and submission-scope variables. See Variables.
profilesSaved variable values a run can load by name.
reservationResource reservations: list and cancel.
manual-stepOperator manual steps: list and confirm.
incidentNon-action error records. Holds the incident recoverable-timeout sub-app.
interventionintervention next: wait for the next thing that needs a person.
eventsevents list: read stored events. See Events.
statestate unsettled: everything nobody has settled, and the operation that settles each. See State.
auditThe audit trail of confirmed dangerous actions.
ops-historyThe per-execution operations archive plus cross-execution search.
topologyMount and read the deployment topology.
runtimeRuntime status and reload.

What --help shows​

orca --help lists every noun. A verb that cannot work on the local daemon says so when you run it and names what to do instead. orca workflow load is the one you are most likely to meet: on the daemon, add the file to workflows/ and run orca runtime reload.

Install and verify​

Orca Framework ships the orca CLI. See Installation for the install steps, then verify:

orca version

version is a no-side-effect sanity check. It prints whatever is installed; no daemon required.

Global flags​

Parsed by the root callback. Work on every verb.

FlagEffect
--jsonJSON on stdout instead of tables (one object per line for streaming verbs).
--quiet / -qSuppress stdout. Only the exit code matters.
--force / --yes / -ySkip confirmation prompts. Verbs that require --reason still require it.
--no-colorDisable ANSI. Sets NO_COLOR for the process.
--verbosePrint full tracebacks on errors.
--backend local|cloudPick the control plane. See backend resolution below.

Status and error lines always go to stderr, so --quiet and --json never swallow them.

Backend resolution​

The CLI talks to one of two backends:

  • local: the orca.daemon running on 127.0.0.1.
  • cloud: an Orca AI deployment over REST.

Precedence (first match wins):

  1. --backend local|cloud flag.
  2. ORCA_BACKEND=local|cloud env var.
  3. ~/.orca/config.json, top-level "backend" key.
  4. Auto-detect.

Auto-detect probes the loopback daemon and the cloud credentials together. Cloud credentials set with no daemon answering gives cloud; a daemon answering GET /health gives local. If neither holds, the CLI exits 10 and prints both setup paths.

There is no silent cross-backend fallback. Asking for cloud without ORCA_CLOUD_URL and ORCA_CLOUD_API_KEY exits 2 rather than dialing the daemon, and asking for local with no daemon running exits 10 rather than dialing the cloud.

Output shapes​

Three modes, picked by global flag:

  • Table (default): Rich tables and key-value blocks on stdout, status on stderr.
  • --json: One JSON document on stdout, or one compact object per line for streaming verbs. Use this in scripts.
  • --quiet: Nothing on stdout. The exit code is the channel.

Exit codes​

Stable contract. Scripts can switch on these.

CodeNameMeaning
0OKVerb succeeded.
1GENERICSomething failed; check stderr.
2USAGEBad flag, bad value, missing required argument, or a verb pointed at the wrong backend.
10NOT_CONNECTEDNo daemon running, no backend resolved at all, or the connection dropped mid-request. A dropped request may or may not have completed.
20NOT_FOUNDEntity (execution, labware, incident) does not exist.
21AMBIGUOUSID prefix matched more than one entity.
30CONFLICTState conflict, for example mounting a topology while one is already mounted or still mounting.
31INVALID_STATEThe target is not in a state where this verb applies.
40CONFIRMATION_DENIEDOperator declined the prompt, or stdin is not a TTY and --force was not passed.
50TIMEOUTA deadline elapsed: run --wait, the start health probe, or a daemon request that got no answer in time. A timed-out request may still complete, so run orca status before retrying.
60PLUGIN_ERRORA registered plugin (for example a cloud backend) failed to load.

Errors that come back from the daemon map by HTTP status: 400 to 2, 404 to 20, 409 to 30, everything else to 1.

ID prefixes​

Long UUIDs are annoying. Verbs that take an execution, thread, submission, labware, incident or reservation id accept an unambiguous prefix of at least 4 characters:

orca execution detail 7a3f
orca incident get 90b2

Shorter than 4 characters exits 2. Zero matches exits 20. Two or more matches exits 21 and lists the matching ids.

Execution ids also accept the literal last, which resolves to the most recent execution this CLI submitted. It is cached in ~/.orca/last.json, so it survives across shell sessions on the same machine.

orca execution detail last

Confirmation and --reason​

Every mutation the runtime exposes carries a danger level, and the CLI picks its prompt from that level.

LevelPrompt
SAFENone. Reads and idempotent calls.
OPERATORy/N, defaulting to no.
CRITICALType a phrase verbatim, for example stop 7a3f1c0e. Mutates a running execution.
PHYSICALType the phrase. Can move hardware or overwrite calibration.

Every confirmed call at any level is written to the audit trail, whichever surface made it.

--force (--yes, -y) skips the prompt at every level. Without a TTY and without --force, a prompt-carrying verb exits 40 rather than hanging.

--reason is a separate requirement from the danger level. The reason is written on the audit row, so a reader can later see why the change was made. On most verbs that take --reason it is optional. On the verbs below it is required, and --force does not waive it: forcing without a reason exits 2.

VerbLevel
labware edit-locationPHYSICAL
labware reset-locationPHYSICAL
labware set-volumePHYSICAL
labware set-tipsPHYSICAL
labware mark-tips-usedPHYSICAL
device release-holdPHYSICAL
execution thread skip-methodCRITICAL
execution thread insert-methodCRITICAL
execution thread replace-methodCRITICAL
execution thread skip-actionCRITICAL
execution thread insert-actionCRITICAL
execution thread replace-actionCRITICAL
reservation cancelCRITICAL
incident recoverable-timeout abortCRITICAL
incident recoverable-timeout mark-completeCRITICAL

These verbs accept --reason but do not require it. Leaving it out writes the audit row with no reason.

GroupVerbs
Submitrun, submission submit
Executionexecution pause, execution resume, execution close, execution stop, execution remove
Threadexecution thread pause, execution thread resume, execution thread spawn
Manual stepmanual-step confirm
Incidentincident ack, incident ack-all, incident recoverable-timeout extend
Variablesvar set, var set-global, var unset
Labwarelabware register, labware edit-barcode, labware confirm-volumes, labware confirm-tips, labware carry, labware carry-normally, labware discharge, labware clear-submission, labware clear-all
Devicedevice connect, device initialize, device disconnect, device take-control, device release-control, device clear-fault, device reconcile-deck, device send, device write-setup, device set-mounted-tips, device confirm-mounted-tips
Calibrationteachpoints create, teachpoints update, teachpoints delete, teachpoints capture, teachpoints import, teachpoints labware set, teachpoints labware clear, grip-profiles set, grip-profiles reset, move-defaults set, move-defaults reset, deck-layouts create, deck-layouts update, deck-layouts delete, access-configs create, access-configs update, access-configs delete

Some verbs that change state take no --reason. execution thread recover still writes an audit row. These write none: execution sim-speedup, topology mount, unload, method execute (a standalone method run), and the catalog writes labware add, labware update and labware delete.

PHYSICAL verbs that are not in the required list still prompt for the typed phrase. orca audit list reads the trail back.

Reading order​

The pages in this section walk the order an operator actually hits them:

  1. Lifecycle: bring the daemon and a system up. Tear them down.
  2. Inspect: read-only inventory of what is loaded.
  3. Run: submit a workflow and track an execution.
  4. Monitor: mid-flight inspection: where is every plate, who is holding what.
  5. Control: operator interventions: pause, resume, skip, insert, set variables, override labware location, send raw device commands.
  6. Recover: incident triage: acknowledge, decide retry/skip/abort, panic chain.
  7. Forensics: audit log plus the operations archive.
  8. Deploy: how code gets onto the daemon, the typed reads, and runtime status and reload.

A typical first session is overview, lifecycle, inspect, run. Everything past that is reach-for-it-when-needed.

See also​

  • Installation: how orca gets onto the machine.
  • Lifecycle: the first verbs of any session, in the order you run them.
  • Runtime: what the CLI is driving, and the same operations from Python.
  • Submissions: groups, batching and run modes, behind orca run.
  • Glossary: every term these pages use.