x gh package
GitHub packages 管理
子命令
| 名称 | 描述 |
|---|---|
| x gh package ls | 罗列所属空间地址包列表 |
| x gh package info | 输出软件包信息 |
| x gh package rm | 删除软件包 |
| x gh package tag | 软件包标记管理 |
x gh package ls
罗列所属空间地址包列表
- 例子:
列出 github 上 google 所属空间的关于容器的包
sh
x gh package ls --owner google --package_type container- 使用:
sh
x gh package lsx gh package info
输出软件包信息
- 例子:
查看 slo-generator 软件包的信息
sh
x gh package info --owner google --package_type container slo-generator- 使用:
sh
x gh package info <#1>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 软件包的名称 |
x gh package rm
删除软件包
- 例子:
删除 slo-generator 软件包的信息
sh
x gh package rm --yes --owner google --package_type container slo-generator- 使用:
sh
x gh package rm <#1>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 包的名称 |
x gh package tag
软件包标记管理
- 例子:
列出 slo-generator 所有的标记
sh
x gh package tag ls --owner google --package_name slo-generator --package_type container- 子命令:
| 名称 | 描述 |
|---|---|
| x gh package tag ls | 罗列所属空间地址包标记列表 |
| x gh package tag info | 获取输出软件包标记信息 |
| x gh package tag rm | 删除软件包标记 |
x gh package tag ls
罗列所属空间地址包标记列表
- 使用:
sh
x gh package tag lsx gh package tag info
获取输出软件包标记信息
- 例子:
获取 slo-generator 软件包的标记, 标记 ID 为 179480285
sh
x gh package tag info --owner google --package_name slo-generator --package_type container 179480285- 使用:
sh
x gh package tag info <#1>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 软件包标记号 ID (可通过 x gh package tag ls 获取) |
x gh package tag rm
删除软件包标记
- 例子:
删除 slo-generator 软件包的标记, 标记 ID 为 179480285
sh
x gh package tag rm --owner google --package_name slo-generator --package_type container 179480285- 使用:
sh
x gh package tag rm <#1>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 软件包标记号 ID (可通过 x gh package tag ls 获取) |
TIP
在交互式终端中(如 zsh, bash ...),可以使用 Tab 获取补全信息
运行 CMD SUBCOMMAND --help 可以获取命令的更多信息
本文作者
转载请注明本文出处及链接
sh
https://cn.x-cmd.com/mod/gh/package/
帮助我们改善文档
X-CMD 的文档内容来自命令的帮助文档、多个数据源以及文档库生成。文档中如果有错误或不明确的地方,欢迎通过这些方式进行告知~
扫描添加小助手完成验证加入微信群