Gitdog CLI
你的GitHub助手。现在到了终端机。
连接存储库,配置问题,讨论和PR自动化,审查 AI操作,并从您的终端或CI管理项目任务。
使用npx运行
需要 node . js 22.14 +. 不需要全局安装。
npx gitdog@latest --help
快速启动
npx gitdog@latest login
npx gitdog@latest github install
npx gitdog@latest github recover
npx gitdog@latest init owner/repo
npx gitdog@latest config set requireApproval true
npx gitdog@latest config set pullRequestReviewsEnabled true
npx gitdog@latest config set requireApprovalForPullRequests true
npx gitdog@latest config push
GitHub应用程序设置只需要一次。一个项目连接现有的GitHub 仓库到git。
日常的命令
| 任务 | 命令 |
|---|---|
| 列表项目 | npx gitdog@latest projects list |
| 读取自动化设置 | npx gitdog@latest config get --remote |
| 审查待处理的操作 | npx gitdog@latest tickets pending |
| 检查代码索引 | npx gitdog@latest index status |
| 列出团队成员 | npx gitdog@latest team members |
| 检查使用情况 | npx gitdog@latest usage summary |
使用 npx gitdog@latest --help 浏览命令。添加 --json 为脚本。
在CI中使用
npx gitdog@latest keys create --name ci
npx --yes [email protected] --key-file /path/to/key.json projects list --json
npx gitdog@latest keys revoke KEY_ID --yes
keys create 打印私钥文件的路径。键是项目范围的和
默认为只读;添加 --write 对于设置和票据的删除/恢复。保持关键
从Git中取出文件。