docs: 修正全部 CLI 语法 — --inputs to --input key=value

This commit is contained in:
Ubuntu
2026-07-13 17:01:53 +08:00
parent 4066bf7d06
commit fe0ca95d5f
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ agc suites list | grep <关键词> # 搜索已有套件
agc init ./my-analysis agc init ./my-analysis
# 测试执行(需先安装 gis-actions # 测试执行(需先安装 gis-actions
agc run <suite-id> --inputs '{"key": "val"}' --wait --poll 5 agc run /tmp/output --suite-id <suite-id> --input key=val
# 发布到市场 # 发布到市场
# 方式一:打包后上传 # 方式一:打包后上传
+1 -1
View File
@@ -15,7 +15,7 @@
3. 准备本地的数据文件 → 文件在你的硬盘上 3. 准备本地的数据文件 → 文件在你的硬盘上
记下文件路径 记下文件路径
4. 执行套件 → gis-actions 从市场拉取脚本包 4. 执行套件 → gis-actions 从市场拉取脚本包
agc run <suite-id> --inputs '{...}' → 启动本地 Docker 容器 agc run /tmp/output --suite-id <suite-id> --input key=val → 启动本地 Docker 容器
--inputs '{"input_path": → 将你的路径挂载到容器内 --inputs '{"input_path": → 将你的路径挂载到容器内
"/data/myfile.shp"}' → 脚本在容器中处理你的文件 "/data/myfile.shp"}' → 脚本在容器中处理你的文件
→ 结果写入 /tmp/output/ → 结果写入 /tmp/output/
+1 -1
View File
@@ -40,5 +40,5 @@ GIS Actions 在你的机器上处理它们,结果文件也在你的机器上
## 工具 ## 工具
- **市场前端:** https://suites.mercator.cn — 浏览、选择、提交 - **市场前端:** https://suites.mercator.cn — 浏览、选择、提交
- **CLI:** `agc run <suite-id>` — 快速执行 - **CLI:** `agc run /tmp/output --suite-id <suite-id> --input key=value` — 快速执行
- **GIS Actions:** 运行在你的机器上,处理本地数据 - **GIS Actions:** 运行在你的机器上,处理本地数据
+1 -1
View File
@@ -44,7 +44,7 @@ docker load -i gis-base.tar.gz
agc suites list agc suites list
# 执行套件,输入文件用本地绝对路径 # 执行套件,输入文件用本地绝对路径
agc run <suite-id> --inputs '{"input_path": "/data/myfile.shp"}' --wait --poll 5 agc run /tmp/output --suite-id <suite-id> --input key=val
``` ```
`<suite-id>``agc suites list` 获取。 `<suite-id>``agc suites list` 获取。
+1 -1
View File
@@ -28,7 +28,7 @@ agc suites list
### 执行套件 ### 执行套件
```bash ```bash
agc run <suite-id> --inputs '{"key": "val"}' --wait --poll 5 agc run /tmp/output --suite-id <suite-id> --input key=val
``` ```
### 发布套件 ### 发布套件
+1 -1
View File
@@ -68,7 +68,7 @@ print(json.dumps(result))
## 第四步:测试 ## 第四步:测试
```bash ```bash
agc run <suite-id> --inputs '{"message": "测试"}' agc run /tmp/output --suite-id <suite-id> --input key=val
``` ```
或直接提交任务到 API 或直接提交任务到 API
+1 -1
View File
@@ -61,7 +61,7 @@ print(json.dumps(result))
tar czf scripts.tar.gz workflow.yaml scripts/ tar czf scripts.tar.gz workflow.yaml scripts/
# 发布后执行 # 发布后执行
agc run <suite-id> --inputs '{"message": "你好,AgentGIS!"}' agc run /tmp/output --suite-id <suite-id> --input key=val
``` ```
完整代码参考:`SuiteHub/hello-world-suite` 完整代码参考:`SuiteHub/hello-world-suite`