Command line
foodlang β the recipe compiler in your terminal
A free, open-source CLI for working with .food and
.food.yaml files. Validate recipes, classify them across the seven
Foodlang levels, print summaries, and compile to 30+ targets. Output goes to
stdout, so it composes with everything else in your shell.
Install
npm install -g @foodlang/cli
# β¦or run it without installing
npx @foodlang/cli --help
Commands
| Command | Description |
|---|---|
validate | Validate a recipe and classify its Foodlang levels |
inspect | Print a human-readable summary of a recipe |
compile | Compile a recipe to a target format |
targets | List available compiler targets and their fidelity |
A quick tour
foodlang validate examples/simple-latte.food.yaml
foodlang inspect examples/simple-latte.food.yaml
foodlang compile examples/simple-latte.food.yaml --target schema-org
foodlang compile examples/simple-latte.food.yaml --target qr
foodlang targets