reoclo groups
reoclo groups lsreoclo 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.
$ reoclo groups lsSLUG NAME KIND APPS CI BLUE-GREEN LAST DEPLOYportfolio Portfolio compose 4 on on #12 succeededShows 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.
create
Section titled “create”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.
| Flag | Description |
|---|---|
--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. |
--deploy | Deploy the stack right after creating it. |
--wait | Wait 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.
$ reoclo stacks create --repo acme/storefront --server prod-web-1 --deploy --waitTo 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.
$ reoclo stacks prune portfolioSLUG SERVICE STATUSportfolio-postgres postgres stoppedRe-run with --yes to remove 1 orphaned member(s).
$ reoclo stacks prune portfolio --yes✓ removed portfolio-postgresReoclo removes the member with the same soft-delete semantics as the dashboard. Secret bindings and environment variables on the other members are not touched.
deploy
Section titled “deploy”Triggers one coordinated deployment of every managed member (the dashboard’s Deploy All).
--force-recreaterecreates 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.--waitpolls 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).
redeploy
Section titled “redeploy”Redeploys one compose service of the stack as a scoped group deployment.
--force-recreaterecreates the named service’s containers, even when the image and the configuration did not change. Other services are not touched.
$ reoclo groups redeploy portfolio backendRuns 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.
--waitpolls 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).
$ reoclo groups run portfolio minio-init --waittask minio-init: succeeded (exit 0)Bucket created successfully local/devDeploy the stack one time before you run a task. The run uses the environment files from the last stack deployment.
task-runs
Section titled “task-runs”Lists the stack’s one-shot task runs, newest first, with status, exit code, and duration.
--limit <n>caps the rows (default 20).
deployments and deployment
Section titled “deployments and deployment”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.
--logsondeploymentalso prints each stage’s captured log tail, including the failure diagnostics (failing service state and last log lines).
cancel
Section titled “cancel”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.
reoclo groups cancel portfolioreoclo 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
upstep starts, the run finishes and reports what it changed instead of stopping halfway. Services the run did not deploy showskipped. - A finished run cannot be cancelled; the command exits with an error.
config set
Section titled “config set”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.
$ 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.
$ reoclo stacks config set storefront --blue-green onNext Steps
Section titled “Next Steps”- Stacks for what a definition group is
- reoclo secrets to bind secret projects to a stack