From fe0ca95d5fa1bd6284f29d66b34e71134b9973f2 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 13 Jul 2026 17:01:53 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=AD=A3=E5=85=A8=E9=83=A8=20?= =?UTF-8?q?CLI=20=E8=AF=AD=E6=B3=95=20=E2=80=94=20--inputs=20to=20--input?= =?UTF-8?q?=20key=3Dvalue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- suite-developer/TOOLS.md | 2 +- suite-user/AGENTS.md | 2 +- suite-user/IDENTITY.md | 2 +- suite-user/TOOLS.md | 2 +- suites-help/SDK参考/CLI-参考.md | 2 +- suites-help/开发者指南/快速开始.md | 2 +- suites-help/示例代码/Hello-World.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/suite-developer/TOOLS.md b/suite-developer/TOOLS.md index aa63264..37b0937 100644 --- a/suite-developer/TOOLS.md +++ b/suite-developer/TOOLS.md @@ -48,7 +48,7 @@ agc suites list | grep <关键词> # 搜索已有套件 agc init ./my-analysis # 测试执行(需先安装 gis-actions) -agc run --inputs '{"key": "val"}' --wait --poll 5 +agc run /tmp/output --suite-id --input key=val # 发布到市场 # 方式一:打包后上传 diff --git a/suite-user/AGENTS.md b/suite-user/AGENTS.md index 0eeae93..f18272a 100644 --- a/suite-user/AGENTS.md +++ b/suite-user/AGENTS.md @@ -15,7 +15,7 @@ 3. 准备本地的数据文件 → 文件在你的硬盘上 记下文件路径 4. 执行套件 → gis-actions 从市场拉取脚本包 - agc run --inputs '{...}' → 启动本地 Docker 容器 + agc run /tmp/output --suite-id --input key=val → 启动本地 Docker 容器 --inputs '{"input_path": → 将你的路径挂载到容器内 "/data/myfile.shp"}' → 脚本在容器中处理你的文件 → 结果写入 /tmp/output/ diff --git a/suite-user/IDENTITY.md b/suite-user/IDENTITY.md index f094784..d87e47e 100644 --- a/suite-user/IDENTITY.md +++ b/suite-user/IDENTITY.md @@ -40,5 +40,5 @@ GIS Actions 在你的机器上处理它们,结果文件也在你的机器上 ## 工具 - **市场前端:** https://suites.mercator.cn — 浏览、选择、提交 -- **CLI:** `agc run ` — 快速执行 +- **CLI:** `agc run /tmp/output --suite-id --input key=value` — 快速执行 - **GIS Actions:** 运行在你的机器上,处理本地数据 diff --git a/suite-user/TOOLS.md b/suite-user/TOOLS.md index 9bb7d5a..89cd4dc 100644 --- a/suite-user/TOOLS.md +++ b/suite-user/TOOLS.md @@ -44,7 +44,7 @@ docker load -i gis-base.tar.gz agc suites list # 执行套件,输入文件用本地绝对路径 -agc run --inputs '{"input_path": "/data/myfile.shp"}' --wait --poll 5 +agc run /tmp/output --suite-id --input key=val ``` `` 从 `agc suites list` 获取。 diff --git a/suites-help/SDK参考/CLI-参考.md b/suites-help/SDK参考/CLI-参考.md index 7c39fc5..70b283d 100644 --- a/suites-help/SDK参考/CLI-参考.md +++ b/suites-help/SDK参考/CLI-参考.md @@ -28,7 +28,7 @@ agc suites list ### 执行套件 ```bash -agc run --inputs '{"key": "val"}' --wait --poll 5 +agc run /tmp/output --suite-id --input key=val ``` ### 发布套件 diff --git a/suites-help/开发者指南/快速开始.md b/suites-help/开发者指南/快速开始.md index 46cd6e5..8dcd15c 100644 --- a/suites-help/开发者指南/快速开始.md +++ b/suites-help/开发者指南/快速开始.md @@ -68,7 +68,7 @@ print(json.dumps(result)) ## 第四步:测试 ```bash -agc run --inputs '{"message": "测试"}' +agc run /tmp/output --suite-id --input key=val ``` 或直接提交任务到 API: diff --git a/suites-help/示例代码/Hello-World.md b/suites-help/示例代码/Hello-World.md index f60caec..62d13bf 100644 --- a/suites-help/示例代码/Hello-World.md +++ b/suites-help/示例代码/Hello-World.md @@ -61,7 +61,7 @@ print(json.dumps(result)) tar czf scripts.tar.gz workflow.yaml scripts/ # 发布后执行 -agc run --inputs '{"message": "你好,AgentGIS!"}' +agc run /tmp/output --suite-id --input key=val ``` 完整代码参考:`SuiteHub/hello-world-suite`