docs: 全面更新过期引用 — agentgis-cli→gis-actions, 版本 3.0.2
This commit is contained in:
+11
-21
@@ -2,11 +2,15 @@
|
||||
|
||||
## 安装
|
||||
|
||||
`agc` 命令随 gis-actions 包一起安装:
|
||||
|
||||
```bash
|
||||
# 从 Gitea 安装
|
||||
pip install https://git.mercator.cn/SuiteHub/agentgis-cli/raw/branch/main/dist/agentgis_cli-0.1.0-py3-none-any.whl
|
||||
curl -sLO https://git.mercator.cn/api/packages/SuiteHub/generic/gis-actions/3.0.2/gis-actions_3.0.2_all.deb
|
||||
sudo dpkg -i gis-actions_3.0.2_all.deb
|
||||
```
|
||||
|
||||
安装后直接使用 `agc` 命令。
|
||||
|
||||
## 配置
|
||||
|
||||
```bash
|
||||
@@ -18,32 +22,18 @@ agc config set api-key mk_xxxxxxxxxxxxx
|
||||
### 查询套件
|
||||
|
||||
```bash
|
||||
# 列出所有套件
|
||||
agc suites list
|
||||
|
||||
# 搜索套件
|
||||
agc suites search <关键词>
|
||||
|
||||
# 查看套件详情
|
||||
agc suites get <suite-id>
|
||||
```
|
||||
|
||||
### 执行
|
||||
### 执行套件
|
||||
|
||||
```bash
|
||||
# 执行套件
|
||||
agc run <suite-id> --inputs '{"expression": "1+1"}'
|
||||
|
||||
# 查看执行状态
|
||||
agc status <task-id>
|
||||
agc run <suite-id> --inputs '{"key": "val"}' --wait --poll 5
|
||||
```
|
||||
|
||||
### 开发
|
||||
### 发布套件
|
||||
|
||||
```bash
|
||||
# 从模板创建新套件
|
||||
agc init ./my-suite
|
||||
|
||||
# 发布套件
|
||||
agc publish ./my-suite
|
||||
tar czf suite.tgz --exclude='.git' --exclude='__pycache__' my-suite/
|
||||
agc publish upload suite.tgz
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user