@guandata/guancli 1.0.26 → 1.0.27
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/CHANGELOG.md +6 -0
- package/README.md +8 -0
- package/binaries/guancli-darwin-arm64 +0 -0
- package/binaries/guancli-darwin-x64 +0 -0
- package/binaries/guancli-linux-arm64 +0 -0
- package/binaries/guancli-linux-x64 +0 -0
- package/binaries/guancli-win32-x64.exe +0 -0
- package/package.json +1 -1
- package/skills/guancli/references/metric-commands.md +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## @guandata/guancli 1.0.27 - 2026-05-26
|
|
4
|
+
|
|
5
|
+
- 新增 `metric project` 命令,支持查看当前用户可访问的指标主题,并可按主题名称关键词过滤。
|
|
6
|
+
- 指标主题列表会展示主题 ID、名称、备注和累计指标数量,便于后续限定指标搜索范围。
|
|
7
|
+
- 补充指标主题查询相关测试和命令参考文档,提升指标 CLI 使用说明的完整性。
|
|
8
|
+
|
|
3
9
|
## @guandata/guancli 1.0.26 - 2026-05-25
|
|
4
10
|
|
|
5
11
|
- 新增 `ds execute-sql` 命令,支持对一个或多个数据集执行 SQL 查询,并提供 JSON/CSV/表格等输出。
|
package/README.md
CHANGED
|
@@ -27,6 +27,8 @@ guancli ds execute-sql -inputs <ds_id> -sql "SELECT * FROM input1 LIMIT 20" #
|
|
|
27
27
|
guancli ds execute-sql -inputs <ds_id> -sql "SELECT * FROM input1 LIMIT 20" -f json
|
|
28
28
|
guancli ds execute-sql -inputs <ds_id> -sql "SELECT * FROM input1 LIMIT 20" --raw
|
|
29
29
|
# 旧版 public-api fallback 不支持 disable-cache;--limit 在非 raw 输出渲染前本地截断,--raw 保持后端原始响应
|
|
30
|
+
guancli metric project
|
|
31
|
+
guancli metric project 经营 -f json
|
|
30
32
|
guancli page get <page_id>
|
|
31
33
|
guancli card preview <card_id>
|
|
32
34
|
guancli chatbi query --theme-name "经营主题" --message "最近30天营业收入是多少?"
|
|
@@ -34,6 +36,12 @@ guancli chatbi query --theme-name "经营主题" --message "最近30天营业收
|
|
|
34
36
|
|
|
35
37
|
## 版本更新
|
|
36
38
|
|
|
39
|
+
### 1.0.27
|
|
40
|
+
|
|
41
|
+
- 新增 `metric project` 命令,支持查看当前用户可访问的指标主题,并可按主题名称关键词过滤。
|
|
42
|
+
- 指标主题列表会展示主题 ID、名称、备注和累计指标数量,便于后续限定指标搜索范围。
|
|
43
|
+
- 补充指标主题查询相关测试和命令参考文档,提升指标 CLI 使用说明的完整性。
|
|
44
|
+
|
|
37
45
|
### 1.0.26
|
|
38
46
|
|
|
39
47
|
- 新增 `ds execute-sql` 命令,支持对一个或多个数据集执行 SQL 查询,并提供 JSON/CSV/表格等输出。
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -29,11 +29,31 @@ guancli metric [command]
|
|
|
29
29
|
|
|
30
30
|
| 子命令 | 功能 |
|
|
31
31
|
| --- | --- |
|
|
32
|
+
| `project` | 获取指标主题列表 |
|
|
32
33
|
| `search` | 搜索指标 |
|
|
33
34
|
| `get` | 获取指标详情 |
|
|
34
35
|
| `query` | 查询指标数据 |
|
|
35
36
|
| `tree` | 获取指标目录树 |
|
|
36
37
|
|
|
38
|
+
### metric project
|
|
39
|
+
|
|
40
|
+
获取指标主题列表;传关键词时按主题名称做模糊过滤。
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
guancli metric project [keyword] [flags]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
输出中的 `全部指标数` 为主题根目录及其所有子目录累计指标数量。
|
|
47
|
+
|
|
48
|
+
示例:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
guancli metric project --profile default
|
|
52
|
+
guancli metric project 经营 --profile default
|
|
53
|
+
guancli metric project 经营 --profile default -f json
|
|
54
|
+
guancli metric project 经营 --profile default --raw
|
|
55
|
+
```
|
|
56
|
+
|
|
37
57
|
### metric search
|
|
38
58
|
|
|
39
59
|
搜索指标;传关键词时后台用 `%keyword%` 模糊匹配,不传关键词返回所有指标。
|