代码生成从代码自动生成internal/cli/cli.go

CLI 命令完整参考

直接从 internal/cli/cli.go 自动提取的全部 42 组 orquelo / orq 命令行参考。

本文档由 scripts/sync-docs.mjs 直接解析 orquelo-v2/internal/cli/cli.go 自动生成(共提取 42 组命令)。

配置文件查找顺序

所有命令的 -c CONFIG 均为可选参数,按以下优先级自动解析:

  1. 命令行显式传入的 -c FILE
  2. 环境变量 $ORQUELO_CONFIG
  3. 默认主目录路径 $ORQUELO_HOME/config/orquelo.yaml($ORQUELO_HOME 默认为 ~/.orquelo)

完整 orquelo --help 输出

text
orquelo — Agent platform host

Usage:
  orquelo init    [-o FILE] [--plugin-dir DIR]  write a starter configuration from the default plugins (default: into $ORQUELO_HOME)
  orquelo serve   -c CONFIG [--preflight] run the Host in the foreground; --preflight only checks that it could start
  orquelo tui (orq) [-c | -r] [-host URL]  the fullscreen terminal client, attached to this machine's Host or a paired one
  orquelo exec    -c CONFIG -p TEXT|- [-format text|json] [-timeout D] [-questions fail|deny] [-state DIR]  run one task without a Host and exit
  orquelo start | stop | restart          run the installed Host ($ORQUELO_HOME) under the system service manager
  orquelo autostart on [--at-login] | off start it by itself at boot (default) or after login, or not
  orquelo install [--archive FILE] [--version V] [--yes] [--json]   install or upgrade into $ORQUELO_HOME
  orquelo uninstall [--purge] [--yes]     remove the program (--purge: everything)
  orquelo home import --from STATE_DIR --config CONFIG [--env FILE] [--home DIR] [--yes]   copy a development setup into the installation
  orquelo version                         version, commit, build date and database schema
  orquelo reload  -c CONFIG               apply the configuration file to the running Host
  orquelo config history|rollback -c CONFIG [REV]  list revisions, or restore one and reload
  orquelo status  -c CONFIG               counts of runs and deliveries, and the installed Host and its autostart
  orquelo logs    -c CONFIG [-run ID] [-level warn] [-event delivery.] [-since 1h] [-attr k=v] [-json]  read the Host log
  orquelo runs    -c CONFIG [-n N]        list recent runs
  orquelo run show   -c CONFIG RUN_ID     show one run and its deliveries
  orquelo run trace  -c CONFIG RUN_ID [-format text|json|html] [-o FILE]  one run step by step, from its event to the last reply
  orquelo run cancel -c CONFIG RUN_ID     cancel a run (works while the Host runs or not)
  orquelo sessions list -c CONFIG CONNECTION [CONVERSATION]  list sessions, newest first
  orquelo sessions show -c CONFIG SESSION_ID  show a session's timeline
  orquelo sessions forget -c CONFIG USER_ID  delete what a user said in every session
  orquelo delivery retry -c CONFIG ID     retry a permanently failed delivery
  orquelo delivery settle -c CONFIG ID    record a failed delivery as sent
  orquelo feedback list|show|submit|close -c CONFIG [-kind K] [N] ["text"|"note"]  read, file and close /bug, /suggest, /arch reports
  orquelo plugins [-c CONFIG]             the configured instances and their status, or the builtin plugins when there is no configuration
  orquelo plugin search|resolve|install|uninstall|check|doctor ...  find, pin and install plugins
  orquelo plugin list|show|approve ...    the plugin packages (builtins, plugin_dirs)
  orquelo instance list|show|add|set|unset|enable|disable|remove ...  the configured plugin instances
  orquelo schedule list|show|history|add|set|pause|resume|remove|run ...  timed runs and maintenance (P111)
  orquelo media parse [-c CONFIG] [--json] [--pages N | --sheet NAME --rows N] FILE  read a file, or a part of it, as a model is given it, offline (ADR 0018)
  orquelo media eval --corpus DIR [--parser ID] [--json]  score the parsers against a corpus's reference texts
  orquelo plugin test [-config JSON] DIR   run the conformance checks against a plugin (orquelo plugin for details)
  orquelo skill new|validate|list|show|eval ...  write, check, inspect and evaluate skills
  orquelo mcp serve [-c CONFIG]  a stdio MCP server for MCP clients on this machine (Claude Code, Codex, Cursor), as the config's local_mcp person
  orquelo mcp key create|list|revoke -c CONFIG --account CONNECTION:USER [NAME]  a person's API keys for remote MCP clients (shown once)
  orquelo workspace list|remove -c CONFIG [NAME]  the worktrees kept after their tasks ended; remove keeps the diff and branch
  orquelo workspace checkpoints -c CONFIG SESSION   the turns of a session's task worktree that changed files
  orquelo workspace restore -c CONFIG SESSION [-to RUN] [-redo]   roll back its latest turn, through RUN, or redo
  orquelo identity link -c CONFIG CONN:USER CONN:USER  link two accounts as one user
  orquelo identity show -c CONFIG CONN:USER  show the person an account belongs to and its accounts
  orquelo secret set|delete -c CONFIG INSTANCE NAME  store (value read from stdin) or delete a sensitive option
  orquelo login list -c CONFIG [-person CONN:USER]   list people's logins to services (state, expiry, last use)
  orquelo login revoke -c CONFIG CONN:USER SERVICE   delete a person's login: the row, its secrets and its files

-c CONFIG may be left out: then $ORQUELO_CONFIG, then $ORQUELO_HOME/config/orquelo.yaml
($ORQUELO_HOME defaults to orquelo in your home directory).

安装、启动与生命周期

命令语法说明
orquelo init[-o FILE] [--plugin-dir DIR] write a starter configuration from the default plugins (default: into $ORQUELO_HOME)
orquelo serve-c CONFIG [--preflight] run the Host in the foreground; --preflight only checks that it could start
orquelo tui (orq) [-c | -r] [-host URL]the fullscreen terminal client, attached to this machine's Host or a paired one
orquelo exec-c CONFIG -p TEXT|- [-format text|json] [-timeout D] [-questions fail|deny] [-state DIR] run one task without a Host and exit
orquelo start | stop | restartrun the installed Host ($ORQUELO_HOME) under the system service manager
orquelo install [--archive FILE] [--version V] [--yes] [--json]install or upgrade into $ORQUELO_HOME
orquelo uninstall [--purge] [--yes]remove the program (--purge: everything)
orquelo home import --from STATE_DIR --config CONFIG [--env FILE] [--home DIR] [--yes]copy a development setup into the installation
orquelo versionversion, commit, build date and database schema
orquelo reload-c CONFIG apply the configuration file to the running Host
orquelo config history|rollback -c CONFIG [REV]list revisions, or restore one and reload
orquelo plugin search|resolve|install|uninstall|check|doctor ...find, pin and install plugins
orquelo plugin test [-config JSON] DIRrun the conformance checks against a plugin (orquelo plugin for details)
orquelo mcp serve [-c CONFIG]a stdio MCP server for MCP clients on this machine (Claude Code, Codex, Cursor), as the config's local_mcp person

运行监控、轨迹与投递

命令语法说明
orquelo status-c CONFIG counts of runs and deliveries, and the installed Host and its autostart
orquelo logs-c CONFIG [-run ID] [-level warn] [-event delivery.] [-since 1h] [-attr k=v] [-json] read the Host log
orquelo runs-c CONFIG [-n N] list recent runs
orquelo run show-c CONFIG RUN_ID show one run and its deliveries
orquelo run trace-c CONFIG RUN_ID [-format text|json|html] [-o FILE] one run step by step, from its event to the last reply
orquelo run cancel -c CONFIG RUN_IDcancel a run (works while the Host runs or not)
orquelo sessions list -c CONFIG CONNECTION [CONVERSATION]list sessions, newest first
orquelo sessions show -c CONFIG SESSION_IDshow a session's timeline
orquelo sessions forget -c CONFIG USER_IDdelete what a user said in every session
orquelo delivery retry -c CONFIG IDretry a permanently failed delivery
orquelo delivery settle -c CONFIG IDrecord a failed delivery as sent
orquelo feedback list|show|submit|close -c CONFIG [-kind K] [N] ["text"|"note"]read, file and close /bug, /suggest, /arch reports
orquelo schedule list|show|history|add|set|pause|resume|remove|run ...timed runs and maintenance (P111)

插件、实例与技能管理

命令语法说明
orquelo plugins [-c CONFIG]the configured instances and their status, or the builtin plugins when there is no configuration
orquelo plugin list|show|approve ...the plugin packages (builtins, plugin_dirs)
orquelo instance list|show|add|set|unset|enable|disable|remove ...the configured plugin instances
orquelo skill new|validate|list|show|eval ...write, check, inspect and evaluate skills

定时任务、多媒体、MCP 与工作区

命令语法说明
orquelo media parse [-c CONFIG] [--json] [--pages N | --sheet NAME --rows N] FILEread a file, or a part of it, as a model is given it, offline (ADR 0018)
orquelo media eval --corpus DIR [--parser ID] [--json]score the parsers against a corpus's reference texts
orquelo mcp key create|list|revoke -c CONFIG --account CONNECTION:USER [NAME]a person's API keys for remote MCP clients (shown once)
orquelo workspace list|remove -c CONFIG [NAME]the worktrees kept after their tasks ended; remove keeps the diff and branch
orquelo workspace checkpoints -c CONFIG SESSIONthe turns of a session's task worktree that changed files
orquelo workspace restore -c CONFIG SESSION [-to RUN] [-redo]roll back its latest turn, through RUN, or redo

身份关联、密钥与统一登录

命令语法说明
orquelo identity link -c CONFIG CONN:USER CONN:USERlink two accounts as one user
orquelo identity show -c CONFIG CONN:USERshow the person an account belongs to and its accounts
orquelo secret set|delete -c CONFIG INSTANCE NAMEstore (value read from stdin) or delete a sensitive option
orquelo login list -c CONFIG [-person CONN:USER]list people's logins to services (state, expiry, last use)
orquelo login revoke -c CONFIG CONN:USER SERVICEdelete a person's login: the row, its secrets and its files