reoclo apps
reoclo apps lsreoclo apps create [options]reoclo apps get <idOrSlug>reoclo apps deploy [options] <idOrSlug>reoclo apps logs [options] <idOrSlug>reoclo apps restart <idOrSlug>Lists every application in the active tenant with its slug, target server, CI gate state, last deployment status, and current deployment ref.
$ reoclo apps lsSLUG SERVER CI LAST DEPLOY REFapi prod-web-1 on ✓ succeeded deadbeefworker prod-web-1 on ✓ succeeded deadbeefdocs staging-web off ✓ succeeded abc1234admin prod-web-1 off ✗ failed cafe999create
Section titled “create”Creates an application on a server. --name and --server are required. Flags you leave out keep the API’s defaults.
| Flag | Description |
|---|---|
--name <name> | Application name. Required. |
--server <nameOrId> | Server the application runs on. Required. |
--repo <nameOrId> | Repository to build from. |
--build-pack <pack> | Build strategy: dockerfile, docker_compose, or docker_image. |
--docker-image <ref> | Image to run. Build pack docker_image. |
--compose-file <path> | Compose file path in the repository. Build pack docker_compose. |
--compose-service <name> | Compose service to deploy. Build pack docker_compose. |
--deploy-branch <branch> | Branch that deploys. |
--require-ci | Deploy a push only after its CI checks pass. |
--no-auto-deploy | Do not deploy on push. Auto-deploy is on by default. |
--bind <project> | Bind a secret project, by name or id. Repeatable. |
--deploy | Deploy the application right after creating it. CLI 0.93.0 and later. |
--wait | Wait for the deployment and exit non-zero when it does not succeed. Needs --deploy. |
--ref <git-ref> | Branch, tag, or SHA for that first deployment. Needs --deploy. |
--wait-timeout <seconds> | Give up waiting after this long (default 600). |
A compose flag implies --build-pack docker_compose, and --docker-image implies --build-pack docker_image, so you can leave --build-pack out. A flag that conflicts with an explicit --build-pack is rejected (exit code 2).
$ reoclo secrets projects create staging-secrets$ reoclo apps create --name stack --server web1 --repo acme/web \ --compose-file deploy/compose.staging.yml --compose-service web \ --deploy-branch staging --require-ci --bind staging-secrets✓ created application stack (id: 019dc1a8-841f-7102-ac5d-3ee9e9353795)To create and deploy in one step, add --deploy --wait. To deploy a linked repository without choosing a build pack yourself, use reoclo up.
Pass -o json to print the created application record. Secret project bindings apply on the next deploy. See reoclo secrets projects create and reoclo secrets bind.
get <idOrSlug>
Section titled “get <idOrSlug>”Shows the full application record: server, repository, build configuration (Dockerfile, Nixpacks, or buildpack), deployment policy, attached domains, and the most recent few deployments.
reoclo apps get apireoclo apps get 019dc1a8-841f-7102-ac5d-3ee9e9353795deploy [options] <idOrSlug>
Section titled “deploy [options] <idOrSlug>”Triggers a deployment for an application. Returns once the deployment has been queued. Pass --wait to block until the deployment finishes.
| Flag | Description |
|---|---|
--ref <branch|tag|sha> | Deploy this ref once (default: the configured branch’s HEAD). The application’s deploy branch does not change. |
--force-recreate | Recreate the containers even when the image and the configuration did not change. Applies to compose deploys. A Dockerfile or image deploy replaces its containers on every deploy. |
--wait | Wait for the deployment to reach a terminal state, and exit non-zero when it does not succeed. |
reoclo apps deploy apireoclo apps deploy api --ref v2.4.1reoclo apps deploy api --ref $(git rev-parse HEAD)reoclo apps deploy api --force-recreateA --ref deploy is a one-off: it builds and deploys the ref you name, and the next push or plain deploy goes back to the configured branch. It requires the edit_config permission on applications. An application without a linked repository rejects --ref.
After triggering, fetch the deployment logs:
LATEST=$(reoclo deployments ls --app api --limit 1 -o json | jq -r '.[0].id')reoclo deployments logs --build "$LATEST"logs <idOrSlug>
Section titled “logs <idOrSlug>”Fetches recent container logs for an application. The container name is resolved automatically from the application record (it uses the linked_container_name if set, otherwise the canonical reoclo-{tenant}-{slug} derivation).
| Flag | Default | Description |
|---|---|---|
--tail <n> | 200 | Number of lines to return. |
--since <ts> | (none) | RFC 3339 timestamp. Only return lines after this time. |
--search <term> | (none) | Substring filter applied server-side. |
reoclo apps logs api --tail 500reoclo apps logs api --search 'error'reoclo apps logs api -o json | jq '.entries[] | select(.level == "error")'For full server-wide log access including non-application sources (system journal, runner, and so on), use reoclo logs tail.
restart <idOrSlug>
Section titled “restart <idOrSlug>”Restarts the container backing an application by issuing docker restart against the resolved container name. Returns the container name and the runner’s exit code. Non-zero exit codes propagate as a CLI failure.
reoclo apps restart apirestart is one of the few commands available to Automation Keys. See CI/CD automation.
config set <idOrSlug>
Section titled “config set <idOrSlug>”Changes an application’s build and deploy configuration. Only the fields you pass change; everything else is kept.
A member of a stack takes its build from the compose file, so build flags such as --buildpack and --docker-image are refused for it. Deploy settings, --health-check among them, work on members as they do on any other application.
--health-check <spec> sets the deploy health check:
| Spec | Effect |
|---|---|
http:/path | HTTP check against /path |
tcp | TCP connect check on the container port |
command:<cmd> | Runs <cmd> inside the container |
none | No health check |
reoclo apps config set web --health-check http:/health/readyreoclo apps config set web --health-check tcpreoclo apps config set web --health-check none--submodules <mode> decides whether deploys check out the repository’s git submodules: off (the default), on for top-level submodules, or recursive for nested ones too. apps get shows the current mode.
reoclo apps config set web --submodules recursivereoclo apps config set web --submodules offapps create takes --submodules as well.
--blue-green <on|off> turns blue-green deploys on or off. With it on, each new version starts beside the running one and takes over once its health check passes. The application needs a health check; without one the API refuses the change and says why. apps config get shows the setting as deploy.blue_green.
reoclo apps config set web --blue-green onTo turn it on for every service of a stack at once, use reoclo stacks config set --blue-green on.
Any other field can still be set with --set <path>=<value>, for example --set deploy.health_check.interval_seconds=15.
Automation keys
Section titled “Automation keys”reoclo apps deploy is one of the few commands available to Automation Keys. See CI/CD automation for examples.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | Deployment queued (or, with --wait, succeeded) |
| 1 | Server-side error |
| 3 | Authentication failure |
| 2 | Bad flags, for example apps create with a --compose-file and --build-pack dockerfile |
| 4 | Key type not allowed for this command, or the caller lacks a required permission (for example --ref without edit_config) |
| 5 | App, server, repository, or secret project not found |
| 7 | Control plane unreachable: DNS, connection refused, or timeout (CLI 0.55.0+, earlier versions report 1) |
Related
Section titled “Related”reoclo up: deploy a linked repository in one commandreoclo deployments: view deployment historyreoclo env: manage environment variables for an appreoclo logs tail: tail container logs