Configuration and variables
urepo reads five TOML file kinds. Unknown keys are errors naming the file, line, and nearest valid key, and every problem across every file reports together. Paths are relative to the file that states them, except in .urepo/urepo.toml where paths are relative to the workspace root.
| File | Path | Written by |
|---|---|---|
| Root file | .urepo/urepo.toml |
You |
| Project file | <folder>/urepo.toml |
You |
| Lock file | .urepo/urepo.lock |
urepo |
| Extension file | .urepo/extensions/<name>.toml |
You |
| Tool file | .urepo/tools/<tool>.toml |
You |
Value formats
| Kind | Rules | Examples |
|---|---|---|
| Name | ASCII letters, digits, -, _, ., starting with a letter or digit, max 64 chars per segment (/ joins project segments) |
hub/api, test, prod |
| Variable name | ASCII letter or _, followed by letters, digits, or _ |
HUB_ENVIRONMENT |
| Exact version | Starts with a digit; letters, digits, ., -, + (no ranges or wildcards) |
3.11.14, 0.1.0 |
| Size | Whole number and unit (B..TB decimal or KiB..TiB binary, no space) |
"40GB", "512MiB" |
| Commit | 4 to 64 lowercase hexadecimal digits | 7c1e0d4a9b1f |
Root file
# .urepo/urepo.toml
[workspace]
name = "cloud"
urepo = "202612.4.0"
roots = ["apps/service", "apps/misc", "packages"]
[tools]
node = "24.18.0"
python = "3.11.14"
uv = "0.10.9"
[store]
remote = "s3://acme-urepo"
keep = "40GB"
[environment.dev]
source = "main"
auto = true
[environment.qa]
after = "dev"
[environment.prod]
after = "qa"| Table | Key | Type | Default | Meaning |
|---|---|---|---|---|
| top level | ambient |
list | [] |
Caller variables every task copies without hashing them (written before the first table) |
[workspace] |
name |
string | required | Workspace name (used in stack and network names) |
urepo |
string | required | Exact version of urepo; an installed urepo of another version downloads and runs this one |
|
skip |
list | [] |
Extensions that look for no projects, such as ["uv"] |
|
roots |
list | [] |
Folder prefixes stripped from project names | |
runner |
string | "ubuntu-latest" |
CI runner label of every task without its own runner, such as a larger runner of the organization |
|
[tools] |
tool name | string | none | Exact tool version (python, node, uv, pnpm, bun, pulumi, railway; rust is refused) |
[env] |
variable name | string | none | Variable passed to every task and hashed by value |
[store] |
remote |
string | none | s3://bucket or s3://bucket/prefix |
images |
string | none | Container registry for [image.N] pushes |
|
keep |
string | "20GB" |
Local store size cap | |
[environment.N] |
source |
string | none | Source branch of the first environment (exactly one environment sets it) |
after |
string | none | Preceding environment in the chain, whose live commit the gate after compares with |
|
auto |
bool | false |
Release passing commits automatically, without a request |
The root file may also contain any project-file table ([project], [task.N], [image.N], [stack], [release.N]), making the workspace root a project.
Project file
# apps/service/hub/api/urepo.toml
[project]
name = "hub/api"
depends = ["core"]
requires = ["hub/db"]
[tools]
python = "3.13.2"
[env]
HUB_ENVIRONMENT = "test"
[task.test]
run = "node tools/testing/python.mjs hub-api"
after = ["core:pyext"]
inputs = [".", "^", "!docs/**"]
images = ["hub-backend-test"]
pass = ["CI"]
runner = "linux-8cpu"
platform = "linux-x86_64"
[task.seed]
run = "python tools/seed.py"
cache = false
confirm = "Deletes and refills the local database"
[stack]
compose = "compose.yaml"
ports = ["api", "db"]
[release.prod]
apply = "tools/release/deploy {project} {commit}"
prepare = []Remove an inferred task with [task] lint = false. A [task.N] without run extends the task an extension infers under that name: the keys it states replace the inferred task's, and the rest stay, so [task.build] outputs = ["build"] caches a build task whose outputs the extension cannot infer: stating outputs without cache caches the task. Without an inferred task of that name, the table is refused.
A project file has no top-level ambient: urepo refuses one and asks to move its names to the ambient of each task that needs them. The root file's top-level ambient still adds names to every task of the workspace.
| Table | Key | Type | Default | Meaning |
|---|---|---|---|---|
[project] |
name |
string | from path | Project name |
depends |
list | [] |
Extra project dependencies | |
requires |
list | [] |
Projects whose stacks start with this project | |
[tools] |
tool name | string | none | Overrides the workspace tool pin |
[env] |
variable name | string | none | Overrides workspace [env] for this project |
[task.N] |
run |
string or list | required, unless the table extends an inferred task | Commands executed by sh -c in the project folder |
description |
string | none | Summary for urepo task list |
|
after |
list | [] |
Prerequisite task references (build, lib:build, ^build) |
|
inputs |
list | [".", "^"] |
Input patterns (., ^, glob, !glob, /glob, !/glob) |
|
outputs |
list | [] |
Output globs inside the project folder | |
pass |
list | [] |
Caller variables copied and hashed by value | |
secrets |
list | [] |
Caller variables copied, masked, and hashed by name (stays local) | |
ambient |
list | [] |
Caller variables copied and not hashed, added to the root file's top-level ambient |
|
images |
list | [] |
Image names folded into this task's key | |
cache |
bool | true |
false always runs and never records |
|
local |
bool | false |
true keeps records local only |
|
confirm |
string | none | Confirmation prompt before running | |
platform |
string | "host" |
"host", "any", or the platform of a runner GitHub does not host, such as "linux-aarch64" (see Which tasks run, and where) |
|
runner |
string | none | CI runner label | |
cpus |
int | 1 |
Processors granted to the task | |
[image.N] |
dockerfile, target, context |
"Dockerfile", none, [".", "^"] |
Dockerfile path, optional stage, build context patterns (the same forms as inputs) |
|
[stack] |
compose |
string or list | "compose.yaml" |
Compose files, passed to Compose in order with the files of the other stacks a command covers |
profiles, ports |
list | [] |
Compose profiles, published port names | |
build |
bool | false |
true builds the images on up |
|
[release.N] |
use, apply, plan |
string | none | Extension name or inline commands (apply required without use) |
prepare |
list | [] |
Tasks run in the release's checkout before plan and apply |
|
runner |
string | "ubuntu-latest" |
CI runner label of the job that applies the release | |
after |
string or false |
from environment | An earlier environment this release follows, or false to follow none |
Lock file
# .urepo/urepo.lock
v = 1
[tools.node."24.18.0".linux-x86_64]
url = "https://nodejs.org/dist/v24.18.0/node-v24.18.0-linux-x64.tar.gz"
hash = "sha256:7d19c04e55ab31f8e26c0d94a7b3f15e8c20d6a49b7e13f5c8a2d0e64b91f37a"
[tools.python."3.11.14".linux-x86_64]
url = "https://github.com/astral-sh/python-build-standalone/releases/download/20251010/cpython-3.11.14+20251010-x86_64-unknown-linux-gnu-install_only.tar.gz"
tag = "20251010"
hash = "sha256:0e5ad7a53b3d7a85df9a43e10a87fd1b6b3a2f4d60a1c7a9e2c5b86c71b0f2d4"urepo tool lock is the only command that writes this file. It records every platform's archive with its SHA-256 checksum (sha256:), and for a tool addressed by a release tag, the tag. Platforms are linux-x86_64, linux-aarch64, macos-x86_64, macos-aarch64, windows-x86_64, and windows-aarch64.
Extension file
# .urepo/extensions/go.toml
[extension]
name = "go"
schema = 1
[detect]
file = "go.mod"
[task.test]
run = "go test ./..."[extension] name must match the file stem and cannot be a built-in name or explicit. [detect] file matches a filename without slashes; [task.N] attaches default tasks to detected projects.
Tool file
A tool file defines one tool for [tools] in the built-in catalog's form. Its name is the file stem, which must be a valid name other than rust.
# .urepo/tools/example-tool.toml
url = "https://example.com/releases/download/v{version}/example-tool-v{version}-{target}.{format}"
checksums = "https://example.com/releases/download/v{version}/SHA256SUMS"
[platform.linux-x86_64]
target = "x86_64-unknown-linux-gnu"
format = "tar.gz"
bin = ["example-tool-v{version}-{target}"]
[platform.windows-x86_64]
target = "x86_64-pc-windows-msvc"
format = "zip"
bin = ["example-tool-v{version}-{target}"]| Table | Key | Type | Default | Meaning |
|---|---|---|---|---|
| top level | url |
string | required | Address of an archive |
checksums |
string | none | Address of the vendor's checksum file, in the form sha256sum writes; without it, urepo tool lock downloads and hashes each archive |
|
tags |
string | none | GitHub repository (owner/name) whose release tags address the tool; needs checksums |
|
[platform.N] |
target |
string | required | The platform's name in the vendor's addresses |
format |
string | required | tar.gz or zip |
|
bin |
list | required | Folders of the unpacked archive that go first on PATH, in order (. for its root) |
url, checksums, and each bin folder may use {version} (the version from [tools]), {tag} (its release tag), {target}, and {format}. With tags, urepo tool lock searches the repository's 100 newest tags, newest first, for the first whose checksum file lists the version's archive, and records that tag in the lock. N is a platform as the lock file writes it (linux-x86_64, macos-aarch64, ...); a tool runs only on the platforms its file lists. A tool file named after a built-in tool replaces that tool, such as to download it from a mirror.
Environment variables
| Variable | Role |
|---|---|
UREPO_CPUS, UREPO_ROOT, UREPO_PORT_<PROJECT>_<PORT>, UREPO_STACK_<PROJECT> |
Set by urepo for tasks (granted CPUs, absolute workspace root, the worktree's stack ports, stack Compose project names) |
UREPO_STORE_REMOTE |
off makes this process ignore [store] remote: no reads and no writes, as if none were configured, while the local store works as usual. Unset or empty leaves the remote on; any other value is an error |
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGION, AWS_DEFAULT_REGION, AWS_ENDPOINT_URL |
S3-compatible remote store credentials, region (us-east-1 default), and custom endpoint |
GITHUB_TOKEN, GH_TOKEN, GITHUB_REPOSITORY, GITHUB_API_URL |
GitHub REST API authentication, owner/name (falls back to origin), and endpoint |
GITHUB_ACTIONS, GITHUB_EVENT_NAME, GITHUB_REF, GITHUB_OUTPUT, GITHUB_STEP_SUMMARY |
GitHub Actions runner detection; the event and ref, which decide whether a job writes trusted (only a push to the main branch does, see The store); matrix outputs; and the step summary, where urepo ci run writes its task table and urepo ci apply --list writes held releases |
UREPO_SEEDS, UREPO_SEED, UREPO_BLESS |
Test controls for simulation seed count, single-seed trace replay, and snapshot/golden blessing |