x gh action artifact
构建产物管理
例子
罗列仓库的构建产物
sh
x gh action artifact ls --repo <owner/repo>从 <owner/repo> 仓库中 下载 <artifact_id> 构建产物
sh
x gh action artifact download --repo <owner/repo> <artifact_id>从 <owner/repo> 仓库中 下载 <artifact_id> 构建产物到当前路径中
sh
x gh action artifact download --repo <owner/repo> --output . <artifact_id>子命令
| 名称 | 描述 |
|---|---|
| x gh action artifact ls | 交互式表格显示所有者的构建产物 |
| x gh action artifact ll | 罗列仓库的构建产物 |
| x gh action artifact info | 获取输出构建产物的详细信息 |
| x gh action artifact rm | 删除仓库的构建产物 |
| x gh action artifact download | 下载仓库的构建产物 |
x gh action artifact ls
交互式表格显示所有者的构建产物
- 例子:
交互式界面显示工作流信息
sh
x gh action artifact ls -r x-cmd/xx- 使用:
sh
x gh action artifact lsx gh action artifact ll
罗列仓库的构建产物
- 例子:
终端表格显示工作流信息
sh
x gh action artifact ll -r x-cmd/xx- 使用:
sh
x gh action artifact llx gh action artifact info
获取输出构建产物的详细信息
- 例子:
获取 x-cmd/xx 仓库, 工作流 ID 为 1587823767 的构建产物的详细信息
sh
x gh action artifact info -r x-cmd/xx 1587823767- 使用:
sh
x gh action artifact info <#1>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 构建产物 ID (可通过 x gh action artifact ls 获取) |
x gh action artifact rm
删除仓库的构建产物
- 例子:
删除 x-cmd/xx 仓库, 工作流 ID 为 1587823767 的构建产物
sh
x gh action artifact rm --yes -r x-cmd/xx 1587823767- 使用:
sh
x gh action artifact rm <#1>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 构建产物 ID (可通过 x gh action artifact ls 获取) |
x gh action artifact download
下载仓库的构建产物
- 例子:
从 x-cmd/xx 仓库中 下载工作流为 1587823767 的构建产物
sh
x gh action artifact rm --yes -r x-cmd/xx 1587823767从 x-cmd/xx 仓库中 下载工作流为 1587823767 的构建产物到当前路径中
sh
x gh action artifact download --repo x-cmd/xx --output . 1587823767- 使用:
sh
x gh action artifact download|install <#1>- 参数:
| 参数 | 描述 |
|---|---|
#1 | 构建产物 ID (可通过 x gh action artifact ls 获取) |
TIP
在交互式终端中(如 zsh, bash ...),可以使用 Tab 获取补全信息
运行 CMD SUBCOMMAND --help 可以获取命令的更多信息
本文作者
转载请注明本文出处及链接
sh
https://cn.x-cmd.com/mod/gh/action-artifact/
帮助我们改善文档
X-CMD 的文档内容来自命令的帮助文档、多个数据源以及文档库生成。文档中如果有错误或不明确的地方,欢迎通过这些方式进行告知~
扫描添加小助手完成验证加入微信群