Skip to content

Lua DSL

Leonard Ramminger edited this page Aug 14, 2026 · 4 revisions

build.lua (Lua DSL)

build.lua is the project manifest for Beez. It is a Lua script that registers tasks, steps, workflows, and project settings. Beez loads it once at startup, builds an internal registry, then runs what you invoke on the CLI.

Contents

Minimal example

beez.config(require("config"))

step({
    name = "compile",
    phase = "build",
    scope = "default",
    run = "cmake --build build",
})

workflow("build", {
    { phase = "build", scope = "default" },
})

task("clean", "rm -rf build")
beez build
beez clean
beez -s compile

Related pages

  • Fundamentals - concepts (step, task, workflow, phase, scope)
  • CLI - how to run what you declare
  • Configuration - beez.config() settings
  • Caching - input / output / mutate and success cache

Clone this wiki locally