Add all items from one or more locally saved recipes to the user's online grocery cart in a single step. Automatically deduplicates across recipes and checks the pantry first to avoid re-buying items you already have. Use when the user wants to shop for a recipe or add meal ingredients to their cart.
Add all product-linked items from saved recipes directly to the user's cart. Supports multiple recipes in one command with automatic deduplication — shared items (like milk across "Weekly Staples" and "Taco Tuesday") are only added once.
The Kroger API is write-only for cart operations. This CLI can add items to the cart but cannot read or verify cart contents. Always remind the user to review their cart on the store website before checkout.
# Add a single recipe to cart
grocer-cli cart add-recipe 1
# Add multiple recipes (duplicates skipped automatically)
grocer-cli cart add-recipe 1 2 3
# Skip pantry check
grocer-cli cart add-recipe 1 2 --no-check
# Allow duplicates across recipes
grocer-cli cart add-recipe 1 2 --allow-duplicates
# Create a recipe
grocer-cli recipe create "Taco Tuesday" --description "Weekly taco night"
# Search for a product to get its UPC
grocer-cli search "ground beef"
# Link a product to a recipe
grocer-cli recipe add-item 1 "Ground Beef" --product-id <UPC>
# View a recipe's ingredients
grocer-cli recipe show 1
# List all recipes
grocer-cli recipe list
npm install -g grocer-cli)grocer-cli recipe add-item ... --product-id)grocer-cli login)grocer-cli pantry track <purchaseId>grocer-cli recipe list to show available recipesgrocer-cli cart add-recipe <id> to add ingredients to cart