# zebra An incremental script and service runner for Zena (`zena-package.json`), standalone Zebra (`zebra.json`), and [Wireit](https://github.com/google/wireit) (`package.json`) workspaces, built on `zena-lang:workflow`. Zebra runs a dependency graph of scripts and long-running services with declared inputs, outputs, and dependencies, rerunning only what changed. For each script, Zebra content-hashes the declared inputs and asks the workflow engine what to do: nothing (when the previous run recorded the same fingerprints and declared outputs are intact), restore from the local content-addressed cache, or execute the command (`sh -c` in the package directory with `node_modules/.bin` on `PATH`). ## Installation `zebra` is built into the `zena` CLI (`zena build `). To use it as a library or standalone runner: ```sh zena pkg add zena-lang:zebra ``` ## CLI Usage ```sh zena build [-j ] [-w|--watch] [-f|--force] [--no-cache] [-v|--verbose] [] [-- ...] zena run [-j ] [-w|--watch] [-f|--force] [--no-cache] [-v|--verbose] [-- ...] zena test [-j ] [-w|--watch] [--force] [--no-cache] [-v|--verbose] [-- ...] zena build --migrate [--dry-run] [-f|--force] [...] ``` - `` can be a script name in the current package (`zena build test`, `zena run check`), a package directory (`zena build ./packages/app`, which runs `build`), or `: