Skip to content

chant build

chant build [path] [flags]

chant build loads the project at the given path, parses all TypeScript source files, evaluates resource definitions, and serializes the output.

FlagTypeDefaultDescription
-o, --outputstringstdoutWrite output to file
-f, --formatstringjsonOutput format: json or yaml
-d, --lexiconstringallBuild only the specified lexicon (e.g. aws, gitlab)
-w, --watchboolfalseWatch for file changes and rebuild
Terminal window
# Build from current directory
chant build
# Build from specific directory
chant build ./infra
# Output to file
chant build --output stack.json
# YAML output
chant build --format yaml --output stack.yaml
# Watch mode
chant build --watch
CodeMeaning
0Success
1Errors found