@ttpos/cli 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -7
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TTPOS CLI
|
|
2
2
|
|
|
3
|
-
TTPOS
|
|
3
|
+
在终端里查询 TTPOS 门店的经营数据:今天卖了多少、某张订单怎么回事、会员还剩多少余额、哪些门店快到期。
|
|
4
|
+
你可以自己输入命令查,也可以交给 Claude Code、Codex、Cursor 等 AI 助手代查。只读,不修改任何业务数据。
|
|
5
|
+
|
|
6
|
+
## 能查什么
|
|
7
|
+
|
|
8
|
+
| 业务域 | 能查到的内容 |
|
|
9
|
+
| --- | --- |
|
|
10
|
+
| 经营 | 总销售额、实收金额、营业收入、订单数、客单价;多店对比;热销菜品;支付方式收入;员工提成 |
|
|
11
|
+
| 订单 | 门店订单、会员外送单、会员充值,以及明细、付款与退款 |
|
|
12
|
+
| 会员 | 找会员;余额、积分、等级;消费、充值、积分流水 |
|
|
13
|
+
| 商品 | 价格、上下架、分类、规格、加料;配方、BOM、成本卡 |
|
|
14
|
+
| 门店 | 可访问的门店、授权到期;桌台、门店配置、支付方式、打印模板 |
|
|
15
|
+
| 员工 | 员工、角色、权限 |
|
|
16
|
+
|
|
17
|
+
计划支持与不会支持的内容见 [完整说明](https://github.com/ZonEaseTech/ttpos-cli#能查什么)。
|
|
4
18
|
|
|
5
19
|
## 让 AI 帮你装(推荐)
|
|
6
20
|
|
|
7
|
-
把下面这段话原样发给你的 AI
|
|
21
|
+
把下面这段话原样发给你的 AI 助手:
|
|
8
22
|
|
|
9
23
|
```text
|
|
10
24
|
请帮我安装 TTPOS 命令行工具并登录:
|
|
@@ -15,14 +29,14 @@ TTPOS 只读查询 CLI:在终端里查营业额、订单、会员、商品、
|
|
|
15
29
|
之后我问商户数据时,先读 ttpos-shared 技能再查。
|
|
16
30
|
```
|
|
17
31
|
|
|
18
|
-
|
|
32
|
+
登录必须由你本人在浏览器里完成,AI 助手不会、也不应该替你输入密码。
|
|
19
33
|
|
|
20
34
|
## 自己装
|
|
21
35
|
|
|
22
36
|
```sh
|
|
23
37
|
npm install -g @ttpos/cli
|
|
24
|
-
ttpos auth login
|
|
38
|
+
ttpos auth login # 打开浏览器登录
|
|
39
|
+
ttpos stats business # 今天的总销售额、实收金额、订单数
|
|
25
40
|
```
|
|
26
41
|
|
|
27
|
-
支持
|
|
28
|
-
https://github.com/ZonEaseTech/ttpos-cli
|
|
42
|
+
支持 macOS 与 Linux。没有 Node.js 时用安装脚本,见 [完整说明](https://github.com/ZonEaseTech/ttpos-cli)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttpos/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "TTPOS 只读运维 CLI(安装后提供 ttpos 命令)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": { "type": "git", "url": "git+https://github.com/ZonEaseTech/ttpos-cli.git" },
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"engines": { "node": ">=18" },
|
|
9
9
|
"files": ["bin/ttpos.js", "README.md"],
|
|
10
10
|
"optionalDependencies": {
|
|
11
|
-
"@ttpos/cli-linux-x64": "0.4.
|
|
12
|
-
"@ttpos/cli-linux-arm64": "0.4.
|
|
13
|
-
"@ttpos/cli-darwin-x64": "0.4.
|
|
14
|
-
"@ttpos/cli-darwin-arm64": "0.4.
|
|
11
|
+
"@ttpos/cli-linux-x64": "0.4.4",
|
|
12
|
+
"@ttpos/cli-linux-arm64": "0.4.4",
|
|
13
|
+
"@ttpos/cli-darwin-x64": "0.4.4",
|
|
14
|
+
"@ttpos/cli-darwin-arm64": "0.4.4"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": { "access": "public" }
|
|
17
17
|
}
|