📘 Khy-OS 文档站 🧭 新手先读:核心概念

cli-anything-seaclip


name: "cli-anything-seaclip"
description: >-
Command-line interface for SeaClip-Lite - A stateless CLI for managing issues, pipelines, agents, schedules, and activity on the SeaClip-Lite project management board.


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.

Installation#

pip install -e .

Prerequisites:

  • Python 3.10+
  • SeaClip-Lite backend running at localhost:5200

Usage#

Basic Commands#

# Show help
cli-anything-seaclip --help

# Start interactive REPL mode
cli-anything-seaclip

# Run with JSON output (for agent consumption)
cli-anything-seaclip --json server health
cli-anything-seaclip --json issue list
cli-anything-seaclip --json agent list

REPL Mode#

When invoked without a subcommand, the CLI enters an interactive REPL session:

cli-anything-seaclip
# Enter commands interactively with tab-completion and history

Command Groups#

Issue#

Issue management commands.

CommandDescription
listList issues (--status, --priority, --search, --limit)
createCreate a new issue (--title, --description, --priority)
moveMove issue to column (ISSUE_ID --column COL)
statusUpdate issue status (ISSUE_ID --set STATUS)
deleteDelete an issue (ISSUE_ID)

Agent#

Pipeline agent commands.

CommandDescription
listList all pipeline agents

Pipeline#

Pipeline control commands.

CommandDescription
startStart pipeline (--issue UUID --mode auto/manual)
statusGet pipeline status (--issue UUID)
resumeResume paused pipeline (--issue UUID)
stopStop running pipeline (--issue UUID)

Scheduler#

Schedule configuration commands.

CommandDescription
listList all schedule configs
addAdd schedule (--name, --cron, --repo)
syncTrigger sync (SCHEDULE_ID)

Activity#

Activity feed commands.

CommandDescription
listRecent activity (--limit N)

Server#

Server utility commands.

CommandDescription
healthCheck backend health

Output Formats#

All commands support dual output modes:

  • Human-readable (default): Tables, colors, formatted text
  • Machine-readable (--json flag): Structured JSON for agent consumption
# Human output
cli-anything-seaclip issue list

# JSON output for agents
cli-anything-seaclip --json issue list

For AI Agents#

When using this CLI programmatically:

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Error responses include {"error": "message"} in JSON mode

Version#

1.0.0