qodercli 默认进入交互式模式,也可通过 -p 参数以非交互方式输出。
常用命令
| 命令 | 说明 |
|---|
qodercli | 进入交互式对话模式 |
qodercli -p "提示词" | 非交互式执行,输出结果后退出 |
qodercli login | 登录账户 |
qodercli status | 查看会话状态 |
qodercli commit | 自动生成 commit 消息并提交 |
qodercli update | 更新到最新版本 |
qodercli config | 查看和修改 CLI 配置 |
qodercli mcp | 管理 MCP 服务器配置 |
qodercli agents | 管理 Agent(Waker) |
qodercli skills | 管理技能 |
qodercli plugins | 管理插件 |
qodercli hooks | 管理钩子 |
qodercli wiki | 为项目生成 Wiki 文档 |
qodercli rollback | 回滚到之前的版本 |
qodercli feedback | 提交反馈 |
qodercli -v | 查看当前版本号 |
常用选项
| 选项 | 说明 |
|---|
-m <model> | 指定本次会话使用的模型 |
-w <dir> | 指定工作目录 |
-c | 继续最近一次会话 |
-r [id] | 恢复指定会话 |
--attachment <file> | 附加文件到初始提示 |
--remote | 创建云端远程会话 |
--mcp-config <config> | 加载 MCP 服务器配置 |
--agent <name> | 指定本次会话的 Agent |
以上为常用命令和选项,完整列表请运行 qodercli --help 查看。