Commands
The whole toolchain is one binary after the build. These are its commands.
Building
Section titled “Building”orbit build examples/health_service.orb -o health_serviceCompiles a source file to C, then invokes your platform’s C compiler. The executable is the only artifact.
orbit run examples/health_service.orbBuilds to a temporary path and starts it, which is the loop you want while changing a route.
Checking
Section titled “Checking”orbit check examples/health_service.orbType-checks without producing a binary. It runs the same passes build does,
so it is the cheap command to put in an editor hook.
orbit fmt examples/health_service.orborbit fmt --check compilerfmt is token-based, not regular-expression based, so it does not reformat
inside a string. --check prints the files that would change and exits
non-zero, which is what the CI gate uses.
orbit doctorRead-only project checks, D001 through D008, each with a code you can grep
for. It can apply the whitespace fixes with a flag, and it changes nothing
otherwise.
Serving
Section titled “Serving”./health_service 8080The port is the argument. A service prints its startup line to stdout, errors to stderr, and flushes both, so a redirected log file stays live.
Measuring
Section titled “Measuring”/_ledger and /_ledger/data are running endpoints, not commands. They give
per-route request counts, mean milliseconds, and database share, and they exist
in every service without code from you.
Versions
Section titled “Versions”orbit --versionPrints orbit 0.1.0. Services report 0.1.0-rc.2 in /health, which is not a
mistake: the binary version and the response version are tracked separately
until the pre-release cycle closes. The rule for what counts as breaking is in
versioning.
Output conventions
Section titled “Output conventions”Errors go to stderr and ordinary output to stdout, so a pipeline does not
capture a diagnostic. Every command supports --quiet and --verbose, and
--help works per command rather than only globally.