Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.81 KB

File metadata and controls

60 lines (43 loc) · 1.81 KB

Shopping List Command

Generate a combined shopping list from one or more recipes.

Usage

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

Arguments

Argument Description
[RECIPES]... Recipe files to include. Each can have a scaling factor using :N syntax (e.g., "Pasta.cook:3"). Glob patterns supported (e.g., *.cook).

Options

Option Description
-b, --base-path <PATH> Base directory to search for recipe files (default: current directory)
-o, --output <FILE> Output file (format inferred from extension)
-p, --plain Display ingredients without aisle categories
-f, --format <FORMAT> Output format: human (default), json, yaml, markdown
--pretty Pretty-print structured output
-a, --aisle <FILE> Path to aisle configuration file
-i, --ignore-references Don't expand referenced recipes
--ingredients-only Display only ingredient names without quantities

Examples

# Shopping list from multiple recipes
cook shopping-list "Neapolitan Pizza" "Easy Pancakes"

# Scale individual recipes
cook shopping-list "Pizza.cook:2" "Salad.cook"

# Plain list without categories
cook shopping-list "Pizza.cook" --plain

# Export as JSON
cook shopping-list *.cook -f json -o list.json

# Names only
cook shopping-list "Cake.cook" --ingredients-only

# Use custom aisle config
cook shopping-list "Recipe.cook" -a ~/my-store.conf

# From a menu file
cook shopping-list "2 Day Plan.menu"

Notes

  • Ingredients with the same name are automatically combined
  • Items are grouped by aisle category from aisle.conf (use --plain to disable)
  • Uncategorized items appear in an "other" category; run cook doctor aisle to find them
  • Menu files (.menu) are supported with their own scaling