Skip to content
DocsStar33Playground

rax deploy

ReferenceLast updated 2026-12-02 · 8c7937357Quickstart

Deploy an agent using a provider adapter (local Docker, Fly.io, Railway, Render, Cloud Run, DigitalOcean). Part of the CLI reference.

Terminal window
rax deploy up [--target local|fly|railway|render|cloudrun|digitalocean]
[--mode daemon|sdk]
[--dry-run]
[--scaffold-only]
[--name <agent-name>]
[--allow-unauthenticated] # cloudrun only
rax deploy down [--target <target>]
rax deploy status [--target <target>]
rax deploy logs [-f] [--target <target>]
rax deploy init # legacy alias for `deploy up --scaffold-only`
Option Default Description
--target local (auto-detected if config exists) Deploy provider adapter
--mode daemon daemon for full agent loop, sdk for HTTP API mode
--dry-run off Run provider preflight() checks and print execution plan
--scaffold-only off Generate config files only, do not deploy
--name auto-detected from package.json (slugified) Agent/app identifier. Must match /^[a-z0-9][a-z0-9-]{0,40}$/; anything else is rejected. Provider commands run as argument arrays, never through a shell
--allow-unauthenticated off Cloud Run only. By default the service requires IAM auth (--no-allow-unauthenticated); this makes it public. The agent API has no auth of its own
--follow, -f off Follow logs for deploy logs

These commands and flags are validated by apps/cli/tests/cli-contracts.test.ts to detect upstream CLI breaking changes early.

Provider CLI Contract Baseline
local Docker + Compose Docker >= 20, Compose >= 2, supports compose build/up/down/ps/logs, up -d, logs --tail/--follow, ps --format
fly flyctl / fly supports auth whoami, launch --copy-config --name --no-deploy, deploy, status, logs, apps destroy --yes
railway railway supports whoami, link, up, down --yes, status, logs, variables
render render supports blueprints validate, services list, logs. There is no CLI command that creates services from a blueprint: connect the Git repo at dashboard.render.com/blueprints
cloudrun gcloud SDK >= 380, supports config get-value project, auth list --filter --format, run deploy --source --region --port --memory --timeout --no-allow-unauthenticated|--allow-unauthenticated --min-instances --no-cpu-throttling, run services describe/delete/update
digitalocean doctl >= 1.72, supports account get --format --no-header, apps create/list/update/delete/logs, --spec, --format

Always-on daemon settings. --mode daemon runs cron, heartbeat and channels, so the scaffolds keep an instance running: Fly sets auto_stop_machines = "off" with one health check; Cloud Run deploys with --min-instances=1 --no-cpu-throttling; Render needs a paid (non-free) plan, which the scaffold uses. --mode sdk is request-driven and may scale to zero.

For flyctl, gcloud, and doctl, rax deploy resolves local binaries first and can fall back to a Docker-wrapped CLI when Docker is available.

Terminal window
bun test apps/cli/tests/cli-contracts.test.ts
RUN_SLOW_TESTS=1 bun test apps/cli/tests/cli-contracts.test.ts

RUN_SLOW_TESTS=1 enables container image availability checks for the fallback images.

Install

Bun (recommended)bun add reactive-agents
Node 22.5+npm install reactive-agents

Get notified on new releases

Release notes, about once a month.