Tools, stacks, and images
urepo locks runtime versions for every project, isolates local Docker Compose stacks across git worktrees, and binds container images into task keys.
Tools
Declare exact tool versions at the workspace root and override them in any project file when one project needs a different version:
# .urepo/urepo.toml
[workspace]
name = "cloud"
urepo = "202612.4.0"
[tools]
node = "24.18.0"
python = "3.11.14"
uv = "0.10.9"# apps/api/urepo.toml
[project]
name = "api"
[tools]
python = "3.13.2"Version ranges and wildcards are refused. The built-in catalog covers python, node, uv, pnpm, bun, and the deploy tools pulumi and railway across Linux, macOS, and Windows (x86_64 and aarch64). Rust is managed by rustup via rust-toolchain.toml (which the cargo extension includes in task inputs), so setting rust under [tools] is refused.
A tool the catalog lacks gets a tool file, .urepo/tools/<tool>.toml, holding its address template and, for each platform, its archive format and the folders that go on PATH (see Tool file). From then on, [tools] pins it, urepo tool lock locks it, and tasks find it on PATH like a catalog tool. A tool file named after a catalog tool takes its place.
Run urepo tool lock after you change a pin, and commit .urepo/urepo.lock. It records the archive of every platform the tool's catalog entry or tool file defines, with the SHA-256 checksum the vendor publishes beside it (Node's SHASUMS256.txt, python-build-standalone's SHA256SUMS, uv's .sha256 files, Bun's SHASUMS256.txt, Pulumi's checksums.txt). A tool whose vendor publishes no checksums, such as pnpm or the Railway CLI, is downloaded and hashed instead. For Python, urepo tool lock finds the newest python-build-standalone release that holds the version and records its tag. It keeps the entries it already holds without reading them again and drops the entries no pin resolves. It is the only command that writes the lock, so a lock file the other commands refuse, such as one with the b3: checksums of an older urepo, does not stop it: it reads the file as empty and replaces it whole.
Every machine and CI runner then checks its download against the same checksum and gets identical binaries and task keys. A task that needs a locked tool this machine lacks installs it under ~/.urepo/tools/ before it runs, and so do urepo tool run and urepo tool shell. urepo tool install installs every locked tool at once.
Useful tool commands:
urepo tool listshows root pins and per-project overrides.urepo tool lockrecords every platform's archive in.urepo/urepo.lock.urepo tool run -- <command>runs an interactive program with the current project's tools first onPATH.urepo tool shellprintsexport PATH=...(or fish / PowerShell syntax) for shell integration.
The pinned urepo
urepo in [workspace] pins the version of urepo itself. You install urepo once, with install.sh or install.ps1 (see the tutorial). When you run it in a workspace that pins another version, it downloads that release's archive for your platform into ~/.urepo/versions/<version>/, checks it against the release's SHA256SUMS, and runs it with the same arguments. The download happens once per version and machine. Everyone on the repository, and every CI runner, then runs the same urepo.
Stacks
A project declares local services in [stack] and lists projects whose stacks must run alongside it in [project] requires:
# apps/api/urepo.toml
[project]
name = "api"
requires = ["db"]
[stack]
compose = "compose.yaml"
ports = ["api"]Running urepo up api (alias for urepo stack up api) starts the stacks of api and db with one docker compose up --wait, then streams their logs. A one-shot service that exits with status 0, such as one that creates a bucket or runs a migration, leaves the stack up. With build = true in [stack], up builds the stack's images first (up --build).
Every stack of a worktree belongs to one Compose project, urepo-<workspace>-<worktree id>. A command passes Compose the files of every stack it covers, in order and each once, as --file, and their profiles, as --profile. Services of different stacks therefore share Compose's default network, a service's depends_on can name a service of another project's stack, and a service in two profiles runs once. Compose reads exactly the listed files, so list an override file in compose when you want one. When the files sit in different folders, Compose resolves relative paths in all of them from the folder of the first file.
A root compose.yaml can hold every service under profiles, with each project naming its own:
# apps/web/urepo.toml
[project]
name = "web"
requires = ["api"]
[stack]
compose = "../../compose.yaml"
profiles = ["web"]urepo stack down <project> stops the stacks of that project and the projects it requires, and urepo stack down with no project stops every stack of the worktree. urepo stack status lists the running services of the worktree's Compose project.
Each git worktree receives its own Compose project, and so its own network and volumes, and a block of 64 host ports between 20000 and 32735, which a hash of the worktree's folder picks, so nothing records it. The port names in ports take the block's ports in the order projects declare them, sorted by project name. Before urepo up starts a stack, it checks that no other program holds one of its ports and names the port that clashes. Every named port is exposed to Compose and to workspace tasks as UREPO_PORT_<PROJECT>_<PORT> (upper case with /, -, and . replaced by _), so two worktrees can run full stacks side by side without port or volume collisions. Tasks also get UREPO_STACK_<PROJECT>, the worktree's Compose project name, so a task can read a service's logs (docker compose --project-name "$UREPO_STACK_API" logs db) or run a container on the stack's network.
Stop stacks with urepo stack down [project] (add --volumes to remove volumes after confirmation), inspect running services with urepo stack status, and tail the logs of a project's stack and the stacks it requires with urepo stack logs <project>.
Images
[image.<name>] in a project file creates a cached image-<name> build task:
# apps/api/urepo.toml
[project]
name = "api"
[image.api]
dockerfile = "Dockerfile"
context = [".", "^"]context takes the same patterns as inputs. The build context is the project folder, or the workspace root when context holds ^ or a pattern starting with /.
Other tasks can list images = ["api"] to wait for image-api and fold its key into theirs. When [store] images names a container registry, the build pushes the image and records its digest under .urepo/local/image-<name>.digest for releases. urepo config check notes each base image without an @sha256:... digest: its tag can move while the task key stays the same. It fails when git does not ignore the digest files.