Skip to content

reoclo test-pools

reoclo test-pools ls [options]
reoclo test-pools get <pool>
reoclo test-pools create [options]
reoclo test-pools edit [options] <pool>
reoclo test-pools rm [options] <pool>
reoclo test-pools machines [options] <pool>

A test pool sets the machine type, the size limits, the budget and the variables for the jobs that select it. A test file picks its pool by slug (pool: ci). Reoclo creates one machine per job in the cloud account of the pool’s credential and deletes it when the job ends. Test pools are separate from build pools. Available from CLI 0.105.0.

Test servers are enabled for your organization by Reoclo. Until then these commands answer with not found. See Test servers for how a run works and what it costs.

<pool> accepts the pool’s slug, its name or its id.

Lists the pools with their provider, machine type, live and maximum machines, and monthly budget.

  • --skip <n> and --limit <n> page through the list. The default limit is 20, the most is 100.
Terminal window
$ reoclo test-pools ls
SLUG NAME PROVIDER TYPE MACHINES BUDGET ID
staging-check Staging check hetzner cx23 fsn1 0/2 EUR 5.00 01a1cc64-d5fe-7273-8397-3827462802fb

Shows one pool, with its capacity market and the names of its registry credentials. Plain variables appear with their value. A secret appears by name only, because secret values are write-only. The example is abridged; pass -o json for the full object.

Terminal window
$ reoclo test-pools get ci
slug ci
provider hetzner
location fsn1
server_type cx33
max_machines 4
job_time_limit_minutes 360
monthly_budget_cents 2500
budget_currency EUR
variables NODE_ENV=test, API_TOKEN (secret)
storage ci-cache/flow in auto with r2-main, caches 7 d, artifacts 30 d
market on_demand
registries ghcr, docker-hub
live_machines 0

Creates a pool. --name, --credential, --location and --server-type are required.

FlagWhat it sets
--name <name>The pool’s name.
--slug <slug>The slug test files select the pool with. Default: derived from the name. It cannot change later.
--credential <idOrLabel>The AWS or Hetzner cloud credential machines are created with, by id or label.
--provider <provider>hetzner or aws. Default: the credential’s provider. Needed only when two credentials share a label.
--location <loc>A Hetzner location such as fsn1, or one of the credential’s AWS regions such as us-east-1.
--server-type <type>The machine size, such as cx33 on Hetzner or m7i.large on AWS.
--fallback-type <type>A type to try when the provider has no capacity for the main one. Repeatable, up to 10, tried in order.
--arch <arch>amd64 (default) or arm64. Job images must support it.
--market <market>on_demand (default) or spot. Spot capacity is cheaper and can be reclaimed by the provider; it needs an AWS credential.
--registry <nameOrId>A registry credential jobs pull their images with, by name or id. Repeatable. Use pull-only credentials, and at most one per registry host.
--image <id>A Hetzner snapshot id or an AWS AMI id. Default: Ubuntu 24.04.
--stock-image <name>The stock image used when --image is not set. Default ubuntu-24.04.
--volume <gb>Root volume size, 20 to 500. Default 50. It applies to AWS pools.
--max-machines <n>Machines the pool runs at once, 1 to 50. Default 2.
--job-time-limit <minutes>The longest a job may run, 5 to 7200. Default 360.
--budget <amount>Monthly net budget, such as 25 or 25.50. Reoclo stops creating machines when the next machine hour would exceed it. The budget is always saved, whether or not your organization sees cost figures.
--budget-currency <code>The budget currency. Default EUR on Hetzner. AWS budgets are in USD.
--var <KEY=VALUE>A plain variable passed to every job. Repeatable.
--secret <KEY=VALUE>A secret variable, stored encrypted and never shown again. Repeatable.
--storage-credential <nameOrId>The storage credential that reaches the pool’s bucket, by name or id.
--storage-bucket <name>The bucket that keeps caches and artifacts.
--storage-region <region>The bucket’s region, such as eu-central-1. Cloudflare R2 uses auto.
--storage-prefix <prefix>A key prefix inside the bucket. Default: none.
--cache-retention <days>Days a cache is kept, 1 to 365. Default 7.
--artifact-retention <days>Days artifacts are kept, 1 to 365. Default 30.

A pool needs a bucket before a job with a cache or artifacts block can run on it. Giving a pool its first bucket takes --storage-credential, --storage-bucket and --storage-region. The storage options need CLI 0.113.0 or later, and --market and --registry need 0.114.0. Create the bucket’s credential with reoclo storage-credentials.

A variable name starts with a letter or underscore and uses letters, digits and underscores. Names that start with REOCLO_ are reserved. A value is at most 8,192 characters, a pool holds up to 100 variables, and each name can appear once across --var and --secret.

Terminal window
$ reoclo test-pools create --name CI --credential hetzner-main \
--location fsn1 --server-type cx33 --fallback-type cpx22 \
--max-machines 4 --budget 25 --var NODE_ENV=test --secret API_TOKEN=...
✓ test pool created: CI (slug: ci, id: 01a1cc64-d5fe-7273-8397-3827462802fb)

--secret takes the value on the command line, so it can end up in your shell history. Set secrets from a shell with history off, or in the dashboard.

Changes the fields you pass and leaves the rest. It takes the same flags as create, except --slug and --provider, which cannot change, plus:

  • --name <name> renames the pool.
  • --unset-var <KEY> deletes a variable. Repeatable.
  • --image none goes back to the stock image.
  • --no-storage removes the pool’s bucket. Jobs with a cache or artifacts then cannot run on it.
  • --no-registries removes every registry credential from the pool. It cannot be combined with --registry.

--registry on edit replaces the pool’s whole list with the credentials you pass, so repeat the ones you want to keep. --market changes the capacity type for the machines created from then on.

Passing --var or --secret with an existing name sets a new value. A storage option changes only that part of the bucket and keeps the rest, so --storage-bucket ci-cache-2 moves the pool to a new bucket with the same credential, region and retention. A pool that still has live machines refuses a change of --credential until they are deleted.

Terminal window
$ reoclo test-pools edit ci --max-machines 6 --unset-var NODE_ENV
✓ test pool updated: CI (slug: ci, id: 01a1cc64-d5fe-7273-8397-3827462802fb)
$ reoclo test-pools edit ci --storage-credential r2-main --storage-bucket ci-cache --storage-region auto
✓ test pool updated: CI (slug: ci, id: 01a1cc64-d5fe-7273-8397-3827462802fb)

Deletes a pool. It asks first; --yes skips the question. A pool with live machines or active runs cannot be deleted, so wait for them to finish or cancel the runs with reoclo tests cancel.

Terminal window
$ reoclo test-pools rm ci --yes
✓ test pool removed: ci

Lists the machines the pool has created, newest first, with their state, type, location, creation and deletion times, cost so far and any error code.

  • --skip <n> and --limit <n> page through the list.
Terminal window
$ reoclo test-pools machines ci
ID STATE TYPE LOCATION CREATED DELETED COST ERROR
01a1cc75-2fcd-7c53-9be7-216911a737bd deleted cx23 fsn1 2026-11-11T21:13:13.448000Z 2026-11-11T21:15:44.433000Z EUR 0.01
  • reoclo tests: enable a repository, validate and run test files, read logs
  • Test servers: how runs, pools, budgets and variables work
  • Test files: every key in a test file