Skip to main content
RBS (ReasonOS Build System) is a self-contained build system that manages all toolchains internally and provides hermetic builds. This is the exhaustive command reference — every command and flag, exactly as the CLI reports them. This is syntax notation; replace the bracketed parts with a command and its options:

Target labels and patterns

Most commands that operate on build targets accept labels in the same syntax: build, test, run, and coverage also accept a natural syntax — a package path followed by one or more target names. For example, from the RBS source repository root:
  • rbs build examples/go-hello hello — builds hello in the examples/go-hello package; expect a successful build summary.
  • rbs run examples/go-hello hello — builds and runs the same target; expect Hello, World! (built with RBS).

Global flags

These flags are accepted by every command. Per-command flag tables on the other pages omit them (along with -h, --help, which every command supports).
Inside rbs infra, -e/--env takes a different meaning: it is an alias for the infra workspace (--workspace), e.g. dev, staging, prod. See rbs infra.

Shell completion

rbs completion [bash|zsh|fish|powershell] generates an autocompletion script for your shell. rbs help [command] prints help for any command — equivalent to rbs <command> --help.

All commands

Build

Workspace

Platform

Operations