CLI commands
Check your environment, prepare agent images, run YAML recipes and inspect recovery data from the terminal.
Choose a command
Section titled “Choose a command”The CLI prepares and checks the environment your scripts or recipes run in. Write agent tasks in TypeScript and run them with Node.js, as shown in Your first task, or describe them in a YAML recipe. The CLI never creates a project on your machine.
outpost doctorChecks the host, the sandbox provider and an image.outpost imageLists, pulls, verifies, ejects, builds and removes the agent images.outpost recipeCreates, validates, runs and resumes YAML recipes.outpost recoveryInspects and explicitly recovers interrupted state.outpost --helpLists the commands by task, or one command’s options and examples.
In a project that depends on @elie-laloum/outpost, run npx outpost <command>. Elsewhere, run npx @elie-laloum/outpost <command>.
Common options
Section titled “Common options”| Option | Commands | Effect |
|---|---|---|
-h, --help | All | Prints the usage, options and examples, then exits. |
-v, --version | outpost | Prints the installed Outpost version. |
--json | Most commands | Writes the result as JSON on stdout. |
--apply | Recovery | Performs the change; without it, the command only previews. |
| Exit code | Meaning |
|---|---|
0 | Success. doctor warnings and skipped checks still exit 0. |
1 | A check failed, a report is incomplete, or the command failed (message on stderr). |
130 | Interrupted with Ctrl+C. |
143 | Stopped with SIGTERM. |
outpost doctor
Section titled “outpost doctor”Check the host tools and selected sandbox provider. Add --image to check an image in a temporary container as well.
| Flag | Default | Values and effect |
|---|---|---|
--provider | docker | docker, podman, local, vercel, daytona. |
--agent | codex | codex, claude, antigravity, copilot, kimi. Defaults to the image’s agent when --image names an official image. |
--image | None | Local image reference or official image name, checked in a temporary container. Docker and Podman only. |
--json | Off | JSON report. |
It exits 1 when a check fails. Diagnostics explains the report.
outpost image
Section titled “outpost image”Prepare the image your sandbox provider runs. Official names are harness, codex, claude, antigravity, copilot and kimi (Agent images).
--engine defaults to docker; podman writes and builds a Containerfile. eject refuses to overwrite existing files without --force. The engine’s output streams to the terminal; a build stops after 30 minutes.
| Command | Effect |
|---|---|
image list [--json] | Lists the official images and the reference pinned by this release. |
image pull --image NAME [--engine E] | Pulls the published image: its recorded digest, or the tag matching this release. |
image verify --image NAME_OR_REFERENCE | Verifies the GitHub build provenance attestation of a digest. Requires gh. |
image eject --image NAME [--directory D] [--engine E] [--force] | Writes the official recipe, lockfiles and .dockerignore into the current directory or D. |
image build --tag TAG [--directory D] [--engine E] [--file F] [--uid N] [--gid N] | Builds the recipe in D for your UID and GID (1000 on Windows). |
image remove --image REFERENCE [--engine E] | Removes a local image. |
Renamed commands
Section titled “Renamed commands”Earlier names still work and print a deprecation warning. They will be removed in the next major version.
| Earlier name | Current name |
|---|---|
--provider | --provider |
recovery verify --directory PATH | recovery transfer verify --path PATH |
recovery restore --directory PATH | recovery transfer restore --path PATH |
recovery registry recover | recovery registry release |
outpost init was removed: install the package in your own scripts (Installation), prepare an image with outpost image, and create recipe files with outpost recipe init.
API: inspectRecovery · verifyRecoveryTransfer · planRecoveryRestore · restoreRecoveryTransfer · planRecoveryRetention · pruneRecoveryRetention.

