Pantry Management
CookCLI uses a pantry.conf file to track what's already in your kitchen. When you generate a shopping list, items in your pantry are automatically excluded — so you only buy what you actually need.
Pantry support is only available in CookCLI at the moment.
The Pantry Configuration File
The file uses TOML format, organized by storage location:
How It Works
Simple tracking: rice = "5%kg" records what you have. If a recipe calls for rice, it won't appear on your shopping list.
Quantity awareness: If a recipe needs 500g of flour and you have 5kg, the system knows you're covered. If you need 6 eggs and have none listed, they'll be added to the list.
Expiration dates: milk = { expire = "2024-11-15", quantity = "2%L" } tracks freshness alongside quantity.
Frozen goods: Dates like frozen = "2024-10-15" help with stock rotation.
Leftovers: Entries like leftovers_beef_stew with made dates track what needs using up.
Shopping List Integration
The pantry file plugs directly into the cook shopping-list command:
The output includes only the ingredients you need to buy, with pantry items already subtracted.
See Also
- Shopping Lists — Full shopping list workflow
- Meal Planning — Plan meals with pantry awareness
- CookCLI Commands — Full command reference