| name | find-store |
| description | Find store locations near a given zip code and optionally set the closest one as the preferred store. Use when a user wants to locate nearby stores, pick a store for pricing and availability, or change their preferred store location. |
| metadata | {"author":"sieteunoseis","version":"1.0.0"} |
Find Store
Search for grocery stores near a zip code using the grocer-cli tool.
Commands
grocer-cli locations <zip>
grocer-cli locations <zip> --set
Requirements
- grocer-cli must be installed (
npm install -g grocer-cli)
- Grocery chain must be configured (
grocer-cli init)
- User must be authenticated (
grocer-cli login)
Workflow
- Ask the user for their zip code if not provided
- Run
grocer-cli locations <zip> to show nearby stores
- If the user wants to set a preferred store, run
grocer-cli locations <zip> --set
- Confirm the preferred store was set with
grocer-cli status