Files
agent-profiles/suites-help/SDK参考/CLI-参考.md
T

40 lines
614 B
Markdown

# CLI 参考
## 安装
`agc` 命令随 gis-actions 包一起安装:
```bash
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
agc config set api-key mk_xxxxxxxxxxxxx
```
## 命令
### 查询套件
```bash
agc suites list
```
### 执行套件
```bash
agc run <suite-id> --inputs '{"key": "val"}' --wait --poll 5
```
### 发布套件
```bash
tar czf suite.tgz --exclude='.git' --exclude='__pycache__' my-suite/
agc publish upload suite.tgz
```