Recipe commands
Use these commands after your first YAML recipe.
Use these commands after your first YAML recipe. Run outpost recipe <command> --help for local help; common options and exit codes apply.
outpost recipe run
Section titled “outpost recipe run”Run a local YAML recipe with a separate YAML configuration (required), a TypeScript module or a legacy bindings factory. Inputs are checked before configuration loads; declarative configurations also check required agents before allocating a sandbox.
For custom integrations, TypeScript/JavaScript RecipeConfiguration modules and (signal: AbortSignal) => RecipeBindings factories remain supported. A factory returns an already open sandbox: agent roles are checked after allocation, and the factory must clean up if it throws before returning.
| Flag | Default | Effect |
|---|---|---|
--file | Required | Local YAML recipe, limited to 1 MiB. |
--config | Required | Local YAML execution configuration; TypeScript/JavaScript RecipeConfiguration modules and factories remain supported. |
--input | None | Repeat name=value for declared inputs (formats 2 and 3). Scalars use JSON syntax; format 3 also accepts objects, arrays and null. |
--json | Off | Final report with overall status, workflowStatus, tasks, bounded outputs, errors, usage and workspace location. |
--interactive | Automatic on a terminal without --json | Collect dialogue answers and explicit unsigned gate decisions on stdin, display their prompts on stderr and resume. Requires terminal stdin and stderr and a YAML configuration. |
--no-interactive | Off | Leave questions pending for a later invocation or an external client. |
--actor | Sole declared actor, otherwise a selection | Trusted local actor submitting answers; the engine checks task authorization. |
With terminal stdin and stderr, run handles interactive questions without a TypeScript runner. Choices use a selection menu; free-text questions use a text prompt. Each answer is persisted before another question is displayed. --json disables automatic prompting; explicitly combine --interactive --json to keep prompts on stderr and receive one final JSON report on stdout. Without a terminal, execution leaves input requests pending.
Paths are relative to the current directory. Apart from dialogue prompts, successful execution is silent unless observation or reports are declared in configuration version 2 or 3. --json explicitly requests one final JSON report; failures still print diagnostics on stderr.
Text fields are limited to 16,384 characters with a truncation marker. Command diagnostics include the original exit status, stdout and stderr.
Git runs integrate according to the branch policy; file runs publish declared outputs; the final report is emitted after cleanup. Failed or cancelled workspaces are preserved.
Loading, execution or finalization failures exit 1. SIGINT/SIGTERM cancel the run, wait for cleanup and exit 130/143. Keep configuration stdout quiet for parseable JSON output.
outpost recipe status, resume, answer and decide
Section titled “outpost recipe status, resume, answer and decide”These commands require format 3, a YAML --config, --file and --run-id. Status reads the checkpoint without acquiring it. Resume continues settled tasks; --retry-incomplete explicitly authorizes replay of interrupted tasks. After stopping an abandoned coordinator, --recover-revision <revision> fences checkpoint ownership recovery independently of replay and workspace lock recovery.
Answer and decide read one native WorkflowAnswer or WorkflowDecision from a bounded JSON file; signed gates require the original proof. resume --input must match the persisted inputs; omit it to reload them. Run also accepts --run-id for a new checkpoint. Run, resume, answer and decide print a final report only when declared or requested through --json; status always prints its requested result. See durable recipes for state, ownership and recovery behavior.
Resume, answer and decide accept the same --interactive, --no-interactive and --actor flags. Ctrl+C or closed terminal input while a question is displayed leaves it pending and exits 130; resume asks it again without replaying completed turns.
Actor selection declares a trusted local identity, not a login.
Unsigned gates display their saved dependency outputs, then offer Leave pending, Approve/Resume or Reject and require a reason. Leaving pending is the default.
Signed gates still require decide with their existing proofs; terminal input never supplies or bypasses those proofs.
outpost recipe enqueue and serve
Section titled “outpost recipe enqueue and serve”Enqueue publishes without execution. It requires --file, a YAML --config, --queue, --handler and --run-id; repeated --input values use the recipe’s parameter types. --job-id overrides the deterministic default ID, --idempotency-key preserves an effect key across distinct job IDs, and --deadline is an absolute epoch millisecond timestamp. --json requests a receipt; success is otherwise silent.
Serve requires --file, a YAML --config and --service. It starts only that service, blocks until interrupted and emits no implicit progress or final report. See recipe services for workers, HTTP queues, cron and verified webhooks.
outpost recipe init
Section titled “outpost recipe init”Create starter files without overwriting existing files. The parent directory must exist. Choose --workspace-kind ephemeral for a version-3 file recipe; directory creates a copied-directory variant. The default git retains the version-2 recipe and version-1 configuration starter for compatibility.
--file is required; --config also writes the execution configuration. --json reports created paths and the installed editor schema. Generated file starters select Docker: replace their sandbox block with sandbox: { provider: local } for local execution. The first tutorial supplies a complete local, ephemeral example directly.
outpost recipe validate
Section titled “outpost recipe validate”Validate YAML, dependencies and references without importing configuration, resolving input values or allocating a sandbox. Use this in contribution checks and before running a downloaded recipe.
--file is required. Optional --config validates a YAML configuration and required agent roles without allocating resources or reading declared secret values; executable configuration modules are refused by this command. --json reports the recipe name, format version, metadata, declared input definitions, required agent names and ordered task keys. Validation does not execute tools or verify their installation.
A rejected file reports the line and column of the faulty value. When the correction is known, a Hint: line follows the message:
With --json, the error object carries the same code, path, message, hint, file, line and column fields. code names the kind of problem independently of the wording, for example unknown-field, missing-field, invalid-value, unknown-reference, missing-dependency, unsupported-binding or git-workspace-only. An error about a task, such as a Git-only feature in a file workspace, points at the recipe file even when it is detected while reading the execution configuration.
outpost recipe list and outpost recipe fetch
Section titled “outpost recipe list and outpost recipe fetch”List the bundled Git catalogue or select a local JSON file / HTTPS catalogue with --catalog. Fetch one named recipe into a new local file, verify its SHA-256 and declared identity, and validate its YAML before writing. Existing files are never overwritten; downloading does not execute the recipe.
--recipe selects the catalogue entry and --file is the destination. Fetch JSON reports include name, recipe revision, SHA-256 and the saved path. Remote sources and redirects require HTTPS without URL credentials; each resource is limited to 1 MiB and 15 seconds. The catalogue supplies the expected digest, so trust its publisher. See sharing recipes for the contribution format.
Inspect before execution
Section titled “Inspect before execution”Run outpost recipe plan --file recipe.yaml --config execution.yaml to inspect the workspace kind, task dependencies, component requirements, declared environment names and output publications. For a file workspace, the plan also shows how files reach the sandbox (copy, ephemeral, mount-readonly or mount-write) and, for built-in providers, the sandbox placement and the bindings it supports; a binding the provider does not support is refused at this point. It also lists each agent component used by file tasks with the built-in harness it resolves to and whether that harness captures and resumes conversations in file workspaces; an interactive task whose harness cannot, or whose saveConversations is false, is refused at the agent component. Extension and Outpost harnesses are reported as checked at execution. Add --json for the structured plan. Like validation, planning does not allocate sandboxes, import extensions or resolve secret values. It checks static compatibility; extension providers and live provider and agent capabilities are checked again before execution.

