docs: 修正全部 CLI 语法 — --inputs to --input key=value
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
3. 准备本地的数据文件 → 文件在你的硬盘上
|
||||
记下文件路径
|
||||
4. 执行套件 → gis-actions 从市场拉取脚本包
|
||||
agc run <suite-id> --inputs '{...}' → 启动本地 Docker 容器
|
||||
agc run /tmp/output --suite-id <suite-id> --input key=val → 启动本地 Docker 容器
|
||||
--inputs '{"input_path": → 将你的路径挂载到容器内
|
||||
"/data/myfile.shp"}' → 脚本在容器中处理你的文件
|
||||
→ 结果写入 /tmp/output/
|
||||
|
||||
@@ -40,5 +40,5 @@ GIS Actions 在你的机器上处理它们,结果文件也在你的机器上
|
||||
## 工具
|
||||
|
||||
- **市场前端:** https://suites.mercator.cn — 浏览、选择、提交
|
||||
- **CLI:** `agc run <suite-id>` — 快速执行
|
||||
- **CLI:** `agc run /tmp/output --suite-id <suite-id> --input key=value` — 快速执行
|
||||
- **GIS Actions:** 运行在你的机器上,处理本地数据
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ docker load -i gis-base.tar.gz
|
||||
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` 获取。
|
||||
|
||||
Reference in New Issue
Block a user