49 lines
545 B
Markdown
49 lines
545 B
Markdown
# CLI 参考
|
|
|
|
## 安装
|
|
|
|
```bash
|
|
pip install agentgis-cli
|
|
```
|
|
|
|
## 配置
|
|
|
|
```bash
|
|
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>
|
|
```
|
|
|
|
### 开发
|
|
|
|
```bash
|
|
# 从模板创建新套件
|
|
agc init ./my-suite
|
|
|
|
# 发布套件
|
|
agc publish ./my-suite
|
|
```
|