Skip to content
Français

CLI commands

Check your environment, prepare agent images, run YAML recipes and inspect recovery data from the terminal.

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.

In a project that depends on @elie-laloum/outpost, run npx outpost <command>. Elsewhere, run npx @elie-laloum/outpost <command>.

OptionCommandsEffect
-h, --helpAllPrints the usage, options and examples, then exits.
-v, --versionoutpostPrints the installed Outpost version.
--jsonMost commandsWrites the result as JSON on stdout.
--applyRecoveryPerforms the change; without it, the command only previews.
Exit codeMeaning
0Success. doctor warnings and skipped checks still exit 0.
1A check failed, a report is incomplete, or the command failed (message on stderr).
130Interrupted with Ctrl+C.
143Stopped with SIGTERM.

Check the host tools and selected sandbox provider. Add --image to check an image in a temporary container as well.

outpost doctor [--provider NAME] [--agent NAME] [--image NAME] [--timeout MS] [--json]
FlagDefaultValues and effect
--providerdockerdocker, podman, local, vercel, daytona.
--agentcodexcodex, claude, antigravity, copilot, kimi. Defaults to the image’s agent when --image names an official image.
--imageNoneLocal image reference or official image name, checked in a temporary container. Docker and Podman only.
--jsonOffJSON report.

It exits 1 when a check fails. Diagnostics explains the report.

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.

npx outpost image eject --image claude --directory images/claude
npx outpost image build --directory images/claude --tag outpost-claude:dev
CommandEffect
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_REFERENCEVerifies 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.

Earlier names still work and print a deprecation warning. They will be removed in the next major version.

Earlier nameCurrent name
--provider--provider
recovery verify --directory PATHrecovery transfer verify --path PATH
recovery restore --directory PATHrecovery transfer restore --path PATH
recovery registry recoverrecovery 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.