Parse and display Cooklang recipe files.
Usage
Arguments
| Argument | Description |
|---|
[RECIPE] | Recipe file to read (stdin if not specified). Supports full path, relative path, recipe name, or scaling syntax (recipe.cook:2). The .cook extension is optional. |
Options
| Option | Description |
|---|
-f, --format <FORMAT> | Output format: human (default), json, yaml, cooklang, markdown, latex, typst, schema |
-s, --scale <SCALE> | Scaling factor for ingredient quantities (default: 1) |
-o, --output <FILE> | Output file (format inferred from extension) |
--pretty | Pretty-print JSON and YAML output |
Examples
Notes
- The
.cook extension is optional and added automatically - Scaling can use inline
:N syntax or --scale N flag; inline takes precedence - Menu files (
.menu) are supported and scaling applies to all referenced recipes - Output format is inferred from
-o file extension when -f is not specified