Recipe
The recipe
command parses and displays Cooklang recipe files. It's your primary tool for viewing recipes, validating syntax, and converting between …
The Cook CLI command line program provides a suite of tools to create shopping lists, maintain recipes, and manage your cooking workflow. We've built it to be simple and useful for automating your cooking and shopping routine with existing UNIX command line and scripting tools.
CookCLI supports several global options that apply to all commands:
Specify the directory containing your recipes (defaults to current directory):
Control the amount of debug information displayed:
The logging levels are:
-v
: Info messages-vv
: Debug messages (helpful for troubleshooting)-vvv
: Trace messages (detailed parsing and processing information)Start by creating some sample recipes to explore:
Everything in CookCLI follows these principles:
Recipes are stored as .cook
files using the Cooklang markup language. Here's a simple example:
For a complete reference on the Cooklang syntax, see the language specification.
CookCLI looks for configuration files in the following locations:
./config/
– Configuration in your recipe directory~/.config/cooklang/
– User configuration/etc/cooklang/
– System-wide configurationThe aisle.conf
file helps organize shopping lists by store section:
Scale any recipe using the :
notation:
CookCLI works great with standard UNIX tools:
Check all your recipes for errors:
Each command has built-in help:
CookCLI is open source software licensed under the MIT License.
The recipe
command parses and displays Cooklang recipe files. It's your primary tool for viewing recipes, validating syntax, and converting between …
The shopping-list
command creates organized shopping lists from one or more recipes. It automatically combines ingredients, converts units (some …
The server
command starts a local web server that makes your recipe collection browsable from any device with a web browser. It's perfect for cooking …
The search
command helps you find recipes quickly by searching through titles, ingredients, instructions, and metadata. It's perfect for answering …
The import
command fetches recipes from websites and automatically converts them to Cooklang format. It supports hundreds of popular recipe websites …
The doctor
command helps maintain a healthy recipe collection by checking for syntax errors, validating references, and ensuring proper organization. …
The seed
command populates a directory with example Cooklang recipes. It's perfect for getting started, learning the syntax, or setting up a demo. …
The report
command generates custom reports from recipes using minijinja templates. It's a powerful tool for creating recipe cards, nutrition labels, …