poke-ordering
Original:🇺🇸 English
Translated
1 scripts
CLI for browsing menus and placing orders at The Poke Co (South Africa). Use when users want to buy or order something from poke co.
12installs
Sourcespookyuser/poke
Added on
NPX Install
npx skill4agent add spookyuser/poke poke-orderingTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Poke Co Ordering CLI
CLI for browsing menus and placing orders at The Poke Co (South Africa). All output is JSON. Requires Node.js.
Commands
Run via .
node scripts/poke-cli.js <command>| Command | Flags | Output |
|---|---|---|
| — | All locations with open/closed status |
| | |
| | |
| | Matching items with prices, types, deal groups |
| | Full menu dump (large — prefer |
| | Order confirmation with payment URL |
| see below | Build Your Own bowl builder |
| | All BYO ingredient options for a location |
Workflow
- Find location: — pick one by name
node scripts/poke-cli.js locations - Check hours: — confirm
node scripts/poke-cli.js hours --location "Kloof"is_open: true - Search items: — find what to order
node scripts/poke-cli.js search --location "Kloof" --query "salmon" - Place order: pipe JSON to
node scripts/poke-cli.js order --from -
BYO Workflow
- Find location:
node scripts/poke-cli.js locations - Check hours:
node scripts/poke-cli.js hours --location "Kloof" - Get options: — shows all available bases, proteins, toppings, sauces, crunches, extras with prices for both regular and maxi
node scripts/poke-cli.js byo-options --location "Kloof" - Build bowl:
node scripts/poke-cli.js byo --location Kloof --size regular --base ... --protein ... --topping ... --sauce ... --crunch ...
Always run first to see what ingredients are available before building a bowl.
byo-optionsOrder JSON Format
json
{
"location": "Kloof St",
"mobile": "+27XXXXXXXXX",
"order_type": "collection",
"time": "asap",
"items": [
{ "name": "Miso Soup", "quantity": 1 },
{
"name": "Build Your Own",
"quantity": 1,
"instructions": "Extra sauce",
"choices": {
"Choose Your Base": ["White Sushi Rice"],
"Choose Your Protein": ["Salmon"]
}
}
]
}Build Your Own (BYO) Command
The command provides a typed CLI for building custom bowls without needing to know the raw deal group structure.
byoRequired flags:
- — location (partial match)
--location <name> - — bowl size (R83 regular, R99 maxi)
--size <regular|maxi> - — 1-2 bases (repeat flag for split base, or "none")
--base <name> - — 1 protein (or "none")
--protein <name> - — 1-4 toppings (repeat flag)
--topping <name> - — 1-2 sauces (repeat flag), or "none" for no sauce
--sauce <name> - — 1 crunch (or "none")
--crunch <name>
Optional flags:
- — paid extras, up to 2 (repeat flag)
--extra <name> - — extra protein
--extra-protein <name> - — extra sauce (paid, repeat flag)
--extra-sauce <name> - — remove defaults
--remove <name> - — add a side
--side <name> - — add a drink
--drink <name> - — output order-ready JSON item (for piping into
--json)order
Example:
bash
node scripts/poke-cli.js byo --location Kloof --size regular \
--base "sticky rice" --protein salmon \
--topping mango --topping cucumber --topping edamame --topping radish \
--sauce "house shoyu" --sauce "creamy togarashi" \
--crunch "cashew nuts"Discover options: Use to see all available ingredients with prices.
byo-options --location <name>Deal Items (generic)
When returns an item with , you must provide in the order:
searchdeal_groupschoices- Each key is a partial match on the group's
description - Each value is an array of partial matches on option names
- Check and
required/minto know which groups need selectionsmax
Authentication
Ensure is set
POKE_TOKEN=<token>Errors
All errors return to stderr with exit code 1.
{ "error": "..." }| Error | Fix |
|---|---|
| No location matching "X" | Check |
| Not currently accepting orders | |
| No menu item matching "X" | Broaden search query or check |
| Deal requires "choices" | Use |
Tips
- Prefer over
search— menu dumps 80+ items; search returns only matchesmenu - Partial matching everywhere — "kloof" matches "Kloof St", "salmon" matches "Salmon Sashimi"
- Mobile format — use international format:
+27XXXXXXXXX - Filter by category —
search --location Kloof --query rice --category sides