Loading...
Loading...
Compare original and translation side by side
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 |
node scripts/poke-cli.js <command>| 命令 | 参数 | 输出 |
|---|---|---|
| — | 所有门店及其营业/打烊状态 |
| | |
| | |
| | 匹配的商品及其价格、类型、套餐组 |
| | 完整菜单导出(内容较多 — 推荐使用 |
| | 订单确认信息及支付链接 |
| 见下文 | 自定义碗(Build Your Own)构建工具 |
| | 指定门店的所有自定义碗配料选项 |
node scripts/poke-cli.js locationsnode scripts/poke-cli.js hours --location "Kloof"is_open: truenode scripts/poke-cli.js search --location "Kloof" --query "salmon"node scripts/poke-cli.js order --from -node scripts/poke-cli.js locationsnode scripts/poke-cli.js hours --location "Kloof"is_open: truenode scripts/poke-cli.js search --location "Kloof" --query "salmon"node scripts/poke-cli.js order --from -node scripts/poke-cli.js locationsnode scripts/poke-cli.js hours --location "Kloof"node scripts/poke-cli.js byo-options --location "Kloof"node scripts/poke-cli.js byo --location Kloof --size regular --base ... --protein ... --topping ... --sauce ... --crunch ...byo-optionsnode scripts/poke-cli.js locationsnode scripts/poke-cli.js hours --location "Kloof"node scripts/poke-cli.js byo-options --location "Kloof"node scripts/poke-cli.js byo --location Kloof --size regular --base ... --protein ... --topping ... --sauce ... --crunch ...byo-options{
"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"]
}
}
]
}{
"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"]
}
}
]
}byo--location <name>--size <regular|maxi>--base <name>--protein <name>--topping <name>--sauce <name>--crunch <name>--extra <name>--extra-protein <name>--extra-sauce <name>--remove <name>--side <name>--drink <name>--jsonordernode 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"byo-options --location <name>byo--location <name>--size <regular|maxi>--base <name>--protein <name>--topping <name>--sauce <name>--crunch <name>--extra <name>--extra-protein <name>--extra-sauce <name>--remove <name>--side <name>--drink <name>--jsonordernode 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"byo-options --location <name>searchdeal_groupschoicesdescriptionrequiredminmaxsearchdeal_groupschoicesdescriptionrequiredminmaxPOKE_TOKEN=<token>POKE_TOKEN=<token>{ "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 |
{ "error": "..." }| 错误 | 解决方法 |
|---|---|
| 没有匹配“X”的门店 | 查看 |
| 当前不接受订单 | |
| 没有匹配“X”的菜单商品 | 扩大搜索范围或先查看 |
| 套餐需要“choices”字段 | 使用 |
searchmenu+27XXXXXXXXXsearch --location Kloof --query rice --category sidessearchmenumenusearch+27XXXXXXXXXsearch --location Kloof --query rice --category sides