Commands

A command-line interface for managing and working with Cooklang recipes.

CommandAliasDescription
reciperParse, validate and display recipe files
shopping-listslGenerate a combined shopping list from recipes
serversStart a web server to browse recipes
searchfSearch through your recipe collection
importiImport recipes from websites
reportrpGenerate custom reports using templates
doctorAnalyze recipes for issues
pantrypManage and analyze pantry inventory
seedInitialize with example recipes
lspStart the Language Server Protocol server
updateuUpdate CookCLI to the latest version

Installation

macOS (Homebrew)

brew install cookcli

Build from Source

git clone https://github.com/cooklang/cookcli.git
cd cookcli
cargo build --release

Global Options

OptionDescription
-v, --verbose...Increase verbosity (-v info, -vv debug, -vvv trace)
-h, --helpPrint help
-V, --versionPrint version

Quick Start

cook seed                                     # Create example recipes
cook recipe "Neapolitan Pizza"                # View a recipe
cook shopping-list "Neapolitan Pizza" "Easy Pancakes"  # Shopping list
cook server --open                            # Browse in browser

For the Cooklang markup language, see the language specification.

Recipe

Parse and display Cooklang recipe files.

Usage

cook recipe [OPTIONS] [RECIPE]

Arguments

ArgumentDescription …

Read more →

Shopping List

Generate a combined shopping list from one or more recipes.

Usage

cook shopping-list [OPTIONS] [RECIPES]...

Arguments …

Read more →

Server

Start a local web server to browse and view your recipe collection.

recipes recipe shopping pantry

Usage

cook server [OPTIONS] [BASE_PATH]

Arguments …

Read more →

Search

Search through your recipe collection for matching text.

Usage

cook search [OPTIONS] <TERMS>...

Arguments …

Read more →

Import

Import recipes from websites and convert to Cooklang format.

Requires the OPENAI_API_KEY environment variable for conversion to Cooklang. Without the …

Read more →

Doctor

Analyze your recipe collection for issues and improvements.

Usage

cook doctor [OPTIONS] [COMMAND]

Subcommands

validate

Validate all recipes for …

Read more →

Seed

Initialize a directory with example Cooklang recipes.

Usage

cook seed [OPTIONS] [DIR]

Arguments

Argument …

Read more →

Report

Generate custom reports from recipes using templates.

Note: The report command is currently a prototype feature.

Usage

cook report [OPTIONS] …

Read more →

Update

Update CookCLI to the latest version.

Usage

cook update [OPTIONS]

Alias: cook u

Options

OptionDescription …

Read more →

Lsp

Start the Language Server Protocol server for Cooklang editor integration.

Usage

cook lsp [OPTIONS]

The server communicates over stdin/stdout. …

Read more →

Pantry

Manage and analyze your pantry inventory.

Usage

cook pantry [OPTIONS] <COMMAND>

Options

Option …

Read more →