Skip to content

reoclo apps

reoclo apps ls
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, last deployment status, and current deployment ref.

Terminal window
$ reoclo apps ls
SLUG SERVER LAST DEPLOY REF
api prod-web-1 succeeded deadbeef
worker prod-web-1 succeeded deadbeef
docs staging-web succeeded abc1234
admin prod-web-1 failed cafe999

Shows the full application record: server, repository, build configuration (Dockerfile, Nixpacks, or buildpack), deployment policy, attached domains, and the most recent few deployments.

Terminal window
reoclo apps get api
reoclo apps get 019dc1a8-841f-7102-ac5d-3ee9e9353795

Triggers a deployment for an application. Returns once the deployment has been queued; pass --wait (when shipped) to block until the deployment finishes.

FlagDescription
--ref <commit>Deploy a specific commit, branch, or tag (default: the configured branch’s HEAD).
--waitWait for the deployment to reach a terminal state. (Coming in v1.x.)
Terminal window
reoclo apps deploy api
reoclo apps deploy api --ref v2.4.1
reoclo apps deploy api --ref $(git rev-parse HEAD)

After triggering, fetch the deployment logs:

Terminal window
LATEST=$(reoclo deployments ls --app api --limit 1 -o json | jq -r '.[0].id')
reoclo deployments logs --build "$LATEST"

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).

FlagDefaultDescription
--tail <n>200Number of lines to return.
--since <ts>(none)RFC 3339 timestamp; only return lines after this time.
--search <term>(none)Substring filter applied server-side.
Terminal window
reoclo apps logs api --tail 500
reoclo 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, etc.), use reoclo logs tail.

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.

Terminal window
reoclo apps restart api

restart is one of the few commands available to Automation Keys; see CI/CD automation.

reoclo apps deploy is one of the few commands available to Automation Keys. See CI/CD automation for examples.

CodeMeaning
0Deployment queued (or, with --wait, succeeded)
1Network or server-side error
3Authentication failure
4Key type not allowed for this command
5App not found