Commands
Every command follows urepo <group> <action> [target] [flags] [-- arguments]. Two shortcuts exist: urepo run aliases urepo task run, and urepo up aliases urepo stack up.
| Group | Actions |
|---|---|
task |
run, list, why |
stack |
up, down, status, logs |
project |
list, show |
tool |
list, install, lock, run, shell |
release |
status, plan, request, list |
store |
status, clean |
config |
init, show, check |
ci |
jobs, run, apply |
Global flags, output, and exit statuses
Global flags work before or after any subcommand:
| Flag | Effect |
|---|---|
--json |
Prints one JSON view ("v": 1 first) on stdout and progress on stderr; errors also emit {"v": 1, "error": "..."} on stdout |
-C <folder> |
Runs as if invoked in <folder> |
Two more flags go after the command that takes them:
| Flag | Effect | Commands |
|---|---|---|
--dry-run |
Previews actions without changing files, stores, or remote state | Every command that changes something: task run, stack up, stack down, tool install, tool lock, store clean, config init, release request, ci apply |
--yes |
Answers every confirmation prompt with yes |
Every command that may ask: task run, stack down, release plan, ci apply |
urepo with no command prints its help and exits 0.
Standard output receives the command view (text or JSON); standard error receives the progress of every command that runs tasks (task run, run, ci run, release plan, ci apply). When standard output and standard error are both a terminal, each line a task writes appears as it is written, after the task's address and |, and a line follows as each task ends. Otherwise, as in a pipe, a file or CI, the progress is plain lines with no colour or cursor movement: <task> started when a task's commands start, and <task> <state> <time> when it ends, followed by every line the task wrote, each after <task> | , so that tasks running together never mix their lines. When GITHUB_ACTIONS is true, each task's output is folded instead in a ::group:: that the end line titles, closed by ::endgroup::.
When urepo receives SIGINT or SIGTERM (Ctrl-C or Ctrl-Break on Windows) while tasks run, it stops the processes of every running task, writes the output they had written so far after <task> did not finish when the progress is plain lines, prints error: SIGTERM stopped the run while these tasks were running: <tasks>, and exits with the signal's status. A signal while no task runs stops the command the same way, with urepo: stopped by <signal>. A second signal ends urepo at once.
| Exit status | Meaning |
|---|---|
| 0 | Succeeded |
| 1 | A task failed or was blocked |
| 2 | Invalid arguments or configuration |
| 3 | urepo release plan found a gate that holds the release |
| 4 | Internal, subprocess, or network failure |
| 130 | SIGINT (Ctrl-C) stopped the command |
| 143 | SIGTERM (Ctrl-Break on Windows) stopped the command |
urepo tool run exits with the invoked program's own exit status.
task
urepo task run <task> [target] [-- arguments]
Runs <task> in every selected project that defines it after its after prerequisites, restoring outputs from the store on cache hits. Names or addresses joined by commas run together in one run: urepo run format,lint,test hub. Alias: urepo run.
Flags: --all ignores the store and reruns every task (still recording successes); --fail-fast stops scheduling after the first failure and marks remaining tasks blocked; arguments after -- append to the last command and mark the run partial (nothing recorded).
--json: v, dry_run, partial, tasks, outcome, remote_problems.
urepo task list [target]
Lists tasks with their description, supplier, the tasks each waits for (after), local state (current, stale, waiting, failed, or not applicable), and in the ci column whether continuous integration runs the task: cached when it does and records the result, uncached when it does and the task sets cache = false, so it runs in every check, and no when urepo ci jobs never plans it (see which tasks run). Reads only the local store.
--json: v, tasks (each task, description, supplier, after, ci, cache, state, reason). ci and cache are booleans.
urepo task why <project:task>
Compares a task's current key document against its last local run and lists changed key fields and modified files, or shows the satisfying store record.
--json: v, task, state, reason, key, record, failure, previous, changes, files.
stack
Stack commands require Docker Compose.
urepo stack up [project] and urepo up [project]
Starts the stacks of <project> and of every project it requires with one docker compose up --wait in the worktree's Compose project, then follows their logs. It first checks that no other program holds one of their ports.
--json: v, dry_run, worktree, block, ports, projects, command, failure, follow.
urepo stack down [project]
Stops the stacks of a project and the projects it requires, or every stack of the current worktree, with one docker compose down. Pass --volumes to remove volumes after confirmation.
--json: v, dry_run, worktree, volumes, projects, command.
urepo stack status
Shows the running services of the worktree's Compose project (service, state, health, address).
--json: v, worktree, services.
urepo stack logs <project>
Follows the log stream of a project's stack and the stacks it requires.
--json: v, project, command, ending.
project
urepo project list
Lists every discovered project with project, path, and origin.
--json: v, projects.
urepo project show <project>
Displays a project's dependencies, dependents, requires, tasks, tools, stack, and release tables.
--json: v, path, extensions, project, dependencies, dependents, tools.
tool
urepo tool list
Displays workspace tool pins and each project's resolved versions, marking project overrides.
--json: v, root, projects, empty.
urepo tool install
Downloads, checks against .urepo/urepo.lock, and unpacks every tool for the host platform. It never writes the lock: a tool the lock lacks is an error that says to run urepo tool lock. Each row is installed, already installed, or would install. urepo task run, urepo tool run, and urepo tool shell install a locked tool they need the same way, so you rarely run this yourself.
--json: v, platform, dry_run, tools (each tool, version, outcome, url, hash, folder), empty.
urepo tool lock
Records the archive of every pinned tool (the root's and each project's [tools]) for every platform its catalog entry or tool file defines in .urepo/urepo.lock, with its URL and SHA-256 checksum. The checksum comes from the vendor's published checksum file; a tool without one is downloaded and hashed. For Python, it first finds the newest python-build-standalone release that holds the version and records its tag. Nothing is unpacked. An entry already locked at the same URL is kept without a download, and an entry no pin resolves is dropped. Each row is locked, already locked, would lock, dropped, or would drop. When a download fails, the archives already read are still recorded and the command exits 4. This is the only command that writes the lock, so it runs over a lock file that every other command refuses, such as one with the b3: checksums of an older urepo: it reads such a file as empty and replaces it whole.
--json: v, dry_run, tools (each tool, version, platform, outcome, url, hash), empty.
urepo tool run -- <command>
Runs <command> in the current folder with the current project's locked tools first on PATH and the caller's environment. In a folder no project owns, such as a workspace root that is not a project, the root file's [tools] apply.
urepo tool shell [--shell posix|fish|powershell]
Prints shell commands that put the current project's locked tools first on PATH, or the root file's [tools] in a folder no project owns.
--json: v, shell, tools, paths, lines, empty.
release
Release commands read GitHub and require GITHUB_TOKEN or GH_TOKEN.
urepo release status [project]
Prints, for each project and environment, the live commit, the desired commit, the account that requested it, and the gate that holds it.
--json: v, rows.
urepo release plan <project@environment> [--commit <commit>]
Prints the target commit, the live commit, the commits between them, the steps of the plan command after running prepare in a checkout of the target, and each gate. The target defaults to the commit live in the preceding environment. Exits 3 when a gate holds the release.
--json: v, project, environment, target, live, steps, commits, gates, held.
urepo release request <project@environment> [--commit <commit>] [--override after --reason <text>]
Dispatches the release workflow on the main branch with the inputs project, environment and commit; that run is the request. --commit defaults to the commit live in the preceding environment and must be a commit of the main branch. --override after waives the gate after and needs --reason. --dry-run prints the inputs and the run's name without dispatching.
--json: v, dry_run, inputs, run_name.
urepo release list <project@environment>
Lists the GitHub deployments that recorded releases of the project in the environment, newest first (id, commit, created).
--json: v, project, environment, releases.
store
urepo store status
Reports the local store path, bytes used against keep, entry counts, and remote store reachability, or that UREPO_STORE_REMOTE=off turned the remote store off.
--json: v, local, remote.
urepo store clean [--all]
Evicts least-recently-used local entries down to [store] keep, or removes all local entries with --all.
--json: v, dry_run, scope, keep, bytes_before, bytes_after, dropped, blobs.
config
urepo config init [--name <name>] [--store-keys]
Creates .urepo/urepo.toml, .urepo/.gitignore, and .github/workflows/{check,release}.yml without overwriting existing files. The workflows reach the store's bucket by assuming AWS IAM roles; with --store-keys they read static keys from secrets instead (see With static keys). The command names the GitHub environment main to create before the check workflow writes the store.
--json: v, dry_run, folder, name, entries, github_setup.
urepo config show
Displays the workspace header: its name, the pinned urepo, the store, and the environments. urepo project list, urepo project show, and urepo task list show the rest.
--json: v, name, urepo, store, environments.
urepo config check
Validates configuration files, graph, tools, lock file, and Dockerfiles. It reads only the workspace and never the network; urepo store status asks the remote store. Each check passes or fails, and exits 2 on any problem.
--json: v, problems, files, checks.
ci
Commands invoked by the generated GitHub Actions workflows (see Continuous integration). urepo --help does not list the group; urepo ci --help does.
urepo ci jobs
Lists each runner label with a stale task, keying each task for the platform of its runner, and appends runners=<json> to GITHUB_OUTPUT when set. Exits 2 when a task's runner names no platform and the task sets no platform.
--json: v, jobs (each with runner and stale), github_output.
urepo ci run <runner>
Checks staleness again and runs every stale task on the runner label, with the tasks it waits for. Appends a table of the run's tasks to GITHUB_STEP_SUMMARY when set. Exits 1 when a task fails, and 2 when no task runs on the label or, in GitHub Actions, when the machine is not the platform its tasks are keyed for.
--json: v, runner, run, step_summary.
urepo ci apply [project@environment] [--list]
Applies one release: reads its desired and live commits and its gates again, runs prepare and apply in a checkout of the desired commit, and writes a GitHub deployment when apply succeeds. Exits 0 when the release is applied, live, held by a gate, or has nothing desired, and 1 when prepare or apply fails. With --list, prints the releases whose desired commit is not live and whose gates pass, and appends releases=<json> to GITHUB_OUTPUT; each entry holds project, env, id, group (urepo-<env>-<project>), and runner. With GITHUB_STEP_SUMMARY set, it appends a table of the held releases and their gates.
--json: v, dry_run, release (or v, releases, held, github_output, step_summary with --list).
urepo-import
urepo-import is a command of its own, installed with cargo install --locked urepo-import and not part of the urepo binary or its release archives. It takes --json, --dry-run, and -C <folder>, and ends with the same exit statuses as urepo.
urepo-import mise
Translates the mise.toml of the workspace and of each project folder that holds one into .urepo/urepo.toml and project files in place, without editing any mise.toml. See Moving from mise.
--json: v, dry_run, tools, variables, tasks, files, ignored, renames, summary.