← スキル一覧に戻る

kroger-cli-reference
by cschneid
⭐ 0🍴 0📅 2025年12月24日
SKILL.md
name: Kroger CLI Reference description: Complete reference guide for using the Kroger CLI to search products, manage your cart, and automate grocery shopping at King Sooppers. Use this when you need to understand Kroger CLI commands, syntax, best practices for product selection, or troubleshoot Kroger operations.
Instructions
This skill provides comprehensive documentation for the Kroger CLI tool, which enables command-line automation of grocery shopping at King Sooppers (a Kroger store).
Use this skill when you need to:
- Understand how to use Kroger CLI commands
- Reference product search and cart management syntax
- Learn best practices for product selection
- Troubleshoot authentication or store issues
- Get examples of common operations
Overview
The Kroger CLI is a command-line tool for interacting with King Sooppers for automated shopping. It provides authentication, product search, and cart management capabilities.
Getting Started
Prerequisites
- The
krogercommand is available in$PATHand executable directly - Kroger account with API authentication configured
Authentication & Sessions
kroger auth # Check current API authentication status
kroger login # Login to your Kroger account (use if auth fails)
kroger logout # Logout from your account
Important Notes:
- Assume
kroger authis already valid before starting operations - If authentication fails, run
kroger loginand wait for the response - Authentication persists across sessions
Store Management
Available Commands
kroger store show # Show currently selected store
kroger store set [ID] # Set your default store
kroger stores [ZIP] # Search for stores by ZIP code
Assumptions:
- The store is already set; no need to reconfigure unless switching locations
- All operations default to the currently set store
Product Operations
Search & Discovery
kroger products "search term" # Search for products by name/type
kroger product [ID/UPC] # Get detailed info on a specific product
Examples:
kroger products "organic milk"
kroger products "chicken breast"
kroger product 0001111041700 # Get details for a specific UPC
Product Selection Guidelines
When searching for products, consider:
-
Brand Preferences
- Follow explicit preferences when available
-
Default Selection Strategy
- Prefer midrange brands on sale when no specific preference exists
- Look for good value relative to quality
-
Quantity & Size Matching
- Carefully match product quantity and size to the meal plan
- Consider expected usage patterns for the week
- Account for storage capacity and product shelf life
Cart Operations
Add to Cart
kroger cart add [UPC] # Add item to cart (single unit)
kroger cart add [UPC] -q 2 # Add item with specific quantity
Examples:
kroger cart add 0001111041700
kroger cart add 0001111041700 -q 2
Requirements:
- Cart operations require valid login (
kroger authmust pass) - Assume cart starts empty (API doesn't allow checking existing items)
Tips & Best Practices
- Search Thoroughly - Try multiple search terms if needed to find alternatives
- Check Details - Use
kroger product [UPC]to verify prices, sizes, and ratings before adding - Batch Operations - Add multiple items in sequence for efficiency
- Quantity Planning - Use
-qflag to add multiple units of the same product in one command - Sales & Deals - Look for sale prices when no brand preference is specified
Troubleshooting
- Auth Failed: Run
kroger loginand complete the login flow - Product Not Found: Try alternative search terms or check spelling
- Store Issues: Verify store is set with
kroger store show
More Help
kroger [command] --help # Get detailed help for any command
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です