rax deploy
Deploy an agent using a provider adapter (local Docker, Fly.io, Railway, Render, Cloud Run, DigitalOcean). Part of the CLI reference.
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`Options
Section titled “Options”| 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 |
Provider CLI contracts
Section titled “Provider CLI contracts”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.
Containerized CLI fallback
Section titled “Containerized CLI fallback”For flyctl, gcloud, and doctl, rax deploy resolves local binaries first and can fall back to a Docker-wrapped CLI when Docker is available.
Contract test commands
Section titled “Contract test commands”bun test apps/cli/tests/cli-contracts.test.tsRUN_SLOW_TESTS=1 bun test apps/cli/tests/cli-contracts.test.tsRUN_SLOW_TESTS=1 enables container image availability checks for the fallback images.
Install
Bun (recommended)bun add reactive-agentsNode 22.5+npm install reactive-agentsGet notified on new releases
Release notes, about once a month.