cli-anything-seaclip
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecli-anything-seaclip
cli-anything-seaclip
A stateless command-line interface for SeaClip-Lite project management.
Communicates via HTTP API and direct SQLite reads. No local state or session.
一款面向SeaClip-Lite项目管理的无状态命令行界面。通过HTTP API和直接读取SQLite数据库进行通信,无需本地状态或会话。
Installation
安装
bash
pip install -e .Prerequisites:
- Python 3.10+
- SeaClip-Lite backend running at localhost:5200
bash
pip install -e .前置要求:
- Python 3.10+
- SeaClip-Lite后端服务运行在localhost:5200
Usage
使用方法
Basic Commands
基础命令
bash
undefinedbash
undefinedShow help
显示帮助信息
cli-anything-seaclip --help
cli-anything-seaclip --help
Start interactive REPL mode
启动交互式REPL模式
cli-anything-seaclip
cli-anything-seaclip
Run with JSON output (for agent consumption)
以JSON格式输出(供Agent调用)
cli-anything-seaclip --json server health
cli-anything-seaclip --json issue list
cli-anything-seaclip --json agent list
undefinedcli-anything-seaclip --json server health
cli-anything-seaclip --json issue list
cli-anything-seaclip --json agent list
undefinedREPL Mode
交互式REPL模式
When invoked without a subcommand, the CLI enters an interactive REPL session:
bash
cli-anything-seaclip当不指定子命令调用时,CLI会进入交互式REPL会话:
bash
cli-anything-seaclipEnter commands interactively with tab-completion and history
可交互式输入命令,支持补全和历史记录
undefinedundefinedCommand Groups
命令组
Issue
Issue(任务)
Issue management commands.
| Command | Description |
|---|---|
| List issues (--status, --priority, --search, --limit) |
| Create a new issue (--title, --description, --priority) |
| Move issue to column (ISSUE_ID --column COL) |
| Update issue status (ISSUE_ID --set STATUS) |
| Delete an issue (ISSUE_ID) |
任务管理命令。
| 命令 | 描述 |
|---|---|
| 列出任务(支持参数:--status、--priority、--search、--limit) |
| 创建新任务(支持参数:--title、--description、--priority) |
| 将任务移动到指定列(需传入ISSUE_ID,参数--column COL) |
| 更新任务状态(需传入ISSUE_ID,参数--set STATUS) |
| 删除任务(需传入ISSUE_ID) |
Agent
Agent
Pipeline agent commands.
| Command | Description |
|---|---|
| List all pipeline agents |
流水线Agent命令。
| 命令 | 描述 |
|---|---|
| 列出所有流水线Agent |
Pipeline
Pipeline(流水线)
Pipeline control commands.
| Command | Description |
|---|---|
| Start pipeline (--issue UUID --mode auto/manual) |
| Get pipeline status (--issue UUID) |
| Resume paused pipeline (--issue UUID) |
| Stop running pipeline (--issue UUID) |
流水线控制命令。
| 命令 | 描述 |
|---|---|
| 启动流水线(支持参数:--issue UUID、--mode auto/manual) |
| 获取流水线状态(支持参数:--issue UUID) |
| 恢复暂停的流水线(支持参数:--issue UUID) |
| 停止运行中的流水线(支持参数:--issue UUID) |
Scheduler
Scheduler(调度器)
Schedule configuration commands.
| Command | Description |
|---|---|
| List all schedule configs |
| Add schedule (--name, --cron, --repo) |
| Trigger sync (SCHEDULE_ID) |
调度配置命令。
| 命令 | 描述 |
|---|---|
| 列出所有调度配置 |
| 添加调度计划(支持参数:--name、--cron、--repo) |
| 触发同步(需传入SCHEDULE_ID) |
Activity
Activity(活动记录)
Activity feed commands.
| Command | Description |
|---|---|
| Recent activity (--limit N) |
活动流命令。
| 命令 | 描述 |
|---|---|
| 查看最近活动记录(支持参数:--limit N) |
Server
Server(服务器)
Server utility commands.
| Command | Description |
|---|---|
| Check backend health |
服务器实用命令。
| 命令 | 描述 |
|---|---|
| 检查后端服务健康状态 |
Output Formats
输出格式
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (flag): Structured JSON for agent consumption
--json
bash
undefined所有命令支持两种输出模式:
- 人类可读格式(默认):表格、彩色文本、格式化内容
- 机器可读格式(参数):结构化JSON,供Agent调用
--json
bash
undefinedHuman output
人类可读格式输出
cli-anything-seaclip issue list
cli-anything-seaclip issue list
JSON output for agents
供Agent调用的JSON格式输出
cli-anything-seaclip --json issue list
undefinedcli-anything-seaclip --json issue list
undefinedFor AI Agents
面向AI Agent的使用说明
When using this CLI programmatically:
- Always use flag for parseable output
--json - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Error responses include in JSON mode
{"error": "message"}
当以编程方式使用该CLI时:
- 务必使用参数以获得可解析的输出
--json - 检查返回码 - 0表示成功,非0表示错误
- 解析stderr以获取错误信息(当执行失败时)
- 错误响应在JSON模式下会包含字段
{"error": "message"}
Version
版本
1.0.0
1.0.0