Skip to main content

orun CLI

Platform discipline as code. You declare your platform's structure and standards as intent (intent.yaml, component.yaml, compositions); you package and evolve them like code (Stacks, presets, blueprints, baselines); you ground your coding agents in them so they don't deviate (mcp, skills, agent, the task plane); and a runner verifies the intent, compiles a plan, and executes it (validate, plan, run). The cloud-client commands support all four.

orun is one binary with one command tree. These pages are written against the same code that runs, so orun <command> --help is always the authoritative reference; the pages add examples, context, and the reasons behind the flags.

Running orun with no arguments on an interactive terminal opens the cockpit TUI. In a non-interactive shell, or with ORUN_NO_TUI=1, it prints help instead.

Command map​

1 · Declare​

CommandPurpose
orun intentExplain and render the effective intent after presets and defaults
orun componentList components or inspect one merged component view
orun compositionsList, lock, pull, and package the composition sources an intent declares

2 · Package and evolve​

CommandPurpose
orun newScaffold a component or instantiate a repository from a kind: Blueprint, and upgrade it later (create, instantiate)
orun baselineThe baseline registry: list, check, build here or on the platform, register, publish
orun packBuild a composition package archive without uploading it
orun publishPackage and publish a Stack to an OCI registry
orun fetchDownload a Stack from an OCI registry
orun loginAuthenticate to an OCI registry (not Orunbase; that is orun auth login)

3 · Ground agents​

CommandPurpose
orun mcpServe the orun MCP: one agent surface over the pen and platform planes
orun skillsHosted agent playbooks: list the registry, pull native skill files
orun agentThe agent runtime: types, base literacy, sessions, drivers, serve, attach, replay
orun previewThe live preview: run the dev server the repository declares, detached; a coding session keeps it running
orun taskTasks, epics, and milestones: cloud-issued identity, repo-authored contracts, offline checks
orun specSpec docs: repo-authored markdown annotated to epics, pushed with their commit
orun prThe provenance pen: open, preflight, and land task-carrying pull requests
orun githooksInstall the repository hooks that keep provenance effortless

4 · Verify, plan, execute​

CommandPurpose
orun validateVerify: check the intent and its profile and dependency rules without planning
orun debugPrint every compiler stage for an intent
orun planPlan: check components against their schemas and compile a deterministic execution plan
orun runExecute: run a compiled plan on the local, Docker, or GitHub Actions runner
orun workflowValidate, digest, run, or view a standalone workflow file
orun approveApprove or reject a paused workflow step; list pending approvals
orun statusShow execution status for the latest or a named execution
orun logsStream or filter step logs from an execution
orun describeDetailed view of a run, plan, job, component, revision, or trigger
orun getList plans, runs, jobs, components, and environments
orun tuiOpen the cockpit TUI
orun tui-nextOpen the next-generation cockpit (preview)
orun githubInspect GitHub Actions artifacts and workflow runs
orun catalogResolve, persist, push, and query the component catalog that drives change detection
orun objectsInspect, verify, push, pull, and garbage-collect the content-addressed object graph
orun gcClean up old executions and orphan plans
orun cacheList, prune and bound the caches orun keeps

Cloud client​

CommandPurpose
orun authSign in to Orunbase, check the session, print a token, sign out
orun workspaceShow, list, create, and choose the workspace you are working in (ws)
orun cloudLink this repository to a workspace, check allow-listing, open the console
orun secretsManage secret values and metadata; values are write-only
orun integrationsProvider connections, scope templates, and brokered secrets
orun policyManage and test the portable secret-access policy
orun backendProvision and manage a self-hosted backend on Cloudflare

Utility​

CommandPurpose
orun versionPrint the version (same as --version)
orun completionGenerate shell completion for bash, zsh, fish, or PowerShell
orun helpHelp about any command

Global flags​

FlagMeaning
--intent, -iIntent file path. Auto-discovered by walking up from the current directory to the git root when not set.
--config-dir, -cLegacy fallback: a path or glob for folder-shaped job definitions, used when the intent declares no composition sources (also ORUN_CONFIG_DIR). Composition sources declared in the intent are the recommended path.
--allDisable current-directory component scoping and process every component.
--version, -vPrint the CLI version.
--help, -hShow help for any command.

Context-aware scoping​

Run from inside a component directory and orun scopes to that component and its dependencies automatically. --all overrides it. See context discovery.

Cloud commands and the workspace​

Every command that talks to Orunbase runs against one workspace, resolved in this order: --workspace (alias --org), then ORUN_WORKSPACE or ORUN_ORG, then execution.state.workspace in intent.yaml, then this repository's link, then the workspace selected with orun workspace use. ORUN_TOKEN or ORUN_TOKEN_FILE replaces an interactive login on headless machines. See orun workspace.

Typical flow​

# 1 · declare: edit intent.yaml or a component.yaml, then see the effect
orun intent explain # where each effective field came from
orun component network-foundation # one component's merged view

# 2 · package: pin the standards this repository uses
orun compositions lock

# 3 · ground agents: give a coding agent the same view of the platform
orun mcp serve

# 4 · verify, plan, execute
orun validate # the intent and its rules
orun plan # schemas, then a deterministic plan
orun run # execute it
orun status # how it went
orun logs --failed # why, if it did not

Exit codes​

Most commands exit 0 on success and 1 on a failure they report. orun new and orun baseline new exit 2 on a usage error and 6 on an unparsable blueprint; orun baseline check exits non-zero when a provider is missing. Command pages document anything beyond that.