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.
| Flag | Type | Default | Description |
|---|
-o, --output | string | stdout | Write output to file |
-f, --format | string | json | Output format: json or yaml |
-d, --lexicon | string | all | Build only the specified lexicon (e.g. aws, gitlab) |
-w, --watch | bool | false | Watch for file changes and rebuild |
# Build from current directory
# Build from specific directory
chant build --output stack.json
chant build --format yaml --output stack.yaml
| Code | Meaning |
|---|
| 0 | Success |
| 1 | Errors found |