Skip to content

reoclo groups

reoclo groups ls
reoclo groups get <group>
reoclo groups create [options]
reoclo groups deploy [options] <group>
reoclo groups redeploy <group> <service>
reoclo groups run [options] <group> <service>
reoclo groups task-runs [options] <group>
reoclo groups deployments [options] <group>
reoclo groups deployment [options] <group> <numberOrId>
reoclo groups cancel <group> [numberOrId]

reoclo stacks is an alias for reoclo groups. A stack is a definition group: one docker-compose file, one member application for each service, one coordinated deployment.

<group> accepts the group’s slug or its id.

Lists every group with its kind, member count, CI gate state, blue-green setting, and last deployment.

Terminal window
$ reoclo groups ls
SLUG NAME KIND APPS CI BLUE-GREEN LAST DEPLOY
portfolio Portfolio compose 4 on on #12 succeeded

Shows one group as a full object, including the deploy branch, the CI gate toggle, the compose file path, and blue_green, the stack-wide blue-green setting.

Creates a stack from a linked repository’s compose file, the same as Deploy as stack in the dashboard. Each service in the file becomes a member. Available from CLI 0.93.0.

FlagDescription
--repo <nameOrId>Linked repository with the compose file (owner/name, slug, or id). Required.
--server <nameOrId>Server the stack runs on. Required.
--compose-file <path>Compose file to use. Required when the repository has more than one.
--branch <branch>Branch the stack deploys. Default: the repository’s default branch.
--name <name>Stack name. Default: the repository name.
--deployDeploy the stack right after creating it.
--waitWait for the deployment and exit non-zero when it does not succeed. Needs --deploy.
--wait-timeout <seconds>Give up waiting after this long (default 600, exit code 12).

A compose service that names an image runs that image. Every other service builds from the repository.

Terminal window
$ reoclo stacks create --repo acme/storefront --server prod-web-1 --deploy --wait

To create and deploy in one step, and redeploy on later runs, use reoclo up.

Removes members whose service left the compose definition. Without --yes, the command only lists the orphaned members.

Terminal window
$ reoclo stacks prune portfolio
SLUG SERVICE STATUS
portfolio-postgres postgres stopped
Re-run with --yes to remove 1 orphaned member(s).
$ reoclo stacks prune portfolio --yes
✓ removed portfolio-postgres

Reoclo removes the member with the same soft-delete semantics as the dashboard. Secret bindings and environment variables on the other members are not touched.

Triggers one coordinated deployment of every managed member (the dashboard’s Deploy All).

  • --force-recreate recreates every container, even when the image and the configuration did not change, and rolls out every blue-green service. Without it, the deploy leaves unchanged services running.
  • --wait polls the deployment, prints each stage as it changes, and exits non-zero when the deployment does not succeed.
  • --wait-timeout <seconds> gives up after this long (default 600).

Redeploys one compose service of the stack as a scoped group deployment.

  • --force-recreate recreates the named service’s containers, even when the image and the configuration did not change. Other services are not touched.
Terminal window
$ reoclo groups redeploy portfolio backend

Runs a one-shot task member: a compose service under profiles: or with the reoclo.task label, for example a database migration. Reoclo runs docker compose run --rm on the server with the stack’s environment files applied. Exit code 0 is success.

  • --wait polls the run, prints its exit code and last log lines, and exits non-zero when the run fails.
  • --wait-timeout <seconds> gives up after this long (default 600).
Terminal window
$ reoclo groups run portfolio minio-init --wait
task minio-init: succeeded (exit 0)
Bucket created successfully local/dev

Deploy the stack one time before you run a task. The run uses the environment files from the last stack deployment.

Lists the stack’s one-shot task runs, newest first, with status, exit code, and duration.

  • --limit <n> caps the rows (default 20).

deployments lists the stack’s coordinated deployments. deployment <group> <numberOrId> shows one deployment with its stages and per-service slices.

When a deployment rolled out blue-green services, its stages include rollout between up and verify. The stage fails when a gate failed, and --logs prints the gate lines. In the per-service table, a service whose gate failed shows rolled_back with the reason, and a service left on the previous deployment shows held with the gate that held it. A deployment with either ends partial. See partial deployments.

  • --logs on deployment also prints each stage’s captured log tail, including the failure diagnostics (failing service state and last log lines).

Stops a stack deployment that is queued, running, or stuck. Pass the run number (the n column of reoclo groups deployments) or its id; without one, the command cancels the stack’s newest run that is still in progress. Available from CLI 0.92.0.

Terminal window
reoclo groups cancel portfolio
reoclo groups cancel portfolio 124
  • A run Reoclo is not executing (queued, waiting on CI or a build server, or abandoned) is cancelled at once, its stack lock is released, and its member deployments are marked cancelled.
  • A run Reoclo is executing stops now. A build on a build server, or a build or pull already running on a runner-connected server, is stopped; on an SSH server, the run stops when the current step ends. Once the up step starts, the run finishes and reports what it changed instead of stopping halfway. Services the run did not deploy show skipped.
  • A finished run cannot be cancelled; the command exits with an error.

Changes a stack’s settings. --submodules <mode> decides whether the stack’s clone checks out git submodules for every service: off (the default), on for top-level submodules, or recursive for nested ones too. stacks get shows the current mode, and stacks create takes --submodules as well.

Terminal window
$ reoclo stacks config set storefront --submodules on

--blue-green <on|off> turns blue-green deploys on or off for the whole stack. With it on, every service that has a healthcheck in the Compose file starts each new version beside its running container and takes over once the check passes, services added later included. Services without one keep the standard replace. stacks get shows the setting as blue_green, and you can pass both flags in one call.

Terminal window
$ reoclo stacks config set storefront --blue-green on