cnb-rs repo
cnb-rs repo <subcommand>仓库管理,管理 CNB 平台仓库的创建、查看、编辑、删除等操作。
可用命令
- cnb-rs repo archive — 归档仓库
- cnb-rs repo asset — 管理仓库资产
- cnb-rs repo branch — 分支管理子组(list / view / create / delete / lock / unlock)
- cnb-rs repo clone — 克隆仓库到本地
- cnb-rs repo code-issue — 源码扫描问题子组(list / view)
- cnb-rs repo contributors — 贡献者排行 / 趋势分析子组(top / trend)
- cnb-rs repo create — 创建新仓库
- cnb-rs repo delete — 删除仓库
- cnb-rs repo edit — 编辑仓库信息
- cnb-rs repo events — 获取仓库动态
- cnb-rs repo file — 仓库文件读取子组(list / raw / head)
- cnb-rs repo fork — 查看 Fork 列表
- cnb-rs repo list — 列出仓库
- cnb-rs repo member — 仓库成员管理子组(list / inherited / all / add / update / remove / access)
- cnb-rs repo pin — 管理仓库墙(置顶仓库)
- cnb-rs repo rank — 公仓排行榜子组(daily / weekly / monthly / annual + languages)
- cnb-rs repo search — 搜索公开仓库(不限当前用户拥有)
- cnb-rs repo security — 查看安全概览
- cnb-rs repo settings — 仓库设置管理
- cnb-rs repo tag — Git tag 管理子组(list / view / create / delete + annotation)
- cnb-rs repo transfer — 转移仓库
- cnb-rs repo unarchive — 解除仓库归档
- cnb-rs repo view — 查看仓库详情
仓库路径
许多子命令接受可选的 <repo> 参数来指定仓库路径(格式:org/repo)。
如果不指定,CLI 会自动从当前 Git 目录的 remote URL 推断仓库路径。 也可以通过全局 --repo 参数覆盖:
bash
cnb-rs --repo org/repo repo view