关于 zeabur-template-publish
zeabur-template-publish 是用于将模板 YAML 文件发布到 Zeabur 市场并更新现有模板的技能。它通过 npx 调用 Zeabur CLI,也提供删除和验证模板的命令。
主要功能
- 01发布模板 YAML 文件
- 02更新现有模板
- 03删除模板
- 04获取 YAML 以供验证
- 05通过 npx 调用 Zeabur CLI
适用场景
- 01发布新的市场模板
- 02使用模板代码更新模板
- 03从市场删除模板
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ zeabur/ agent-skills --skill zeabur-template-publish安装后在 Claude Code 中输入/zeabur-template-publish确认已加载。
详细介绍
Zeabur 模板发布
始终使用
npx zeabur@latest调用 Zeabur CLI。 切勿直接使用zeabur或采用其他安装方式。如果无法使用npx,请先安装 Node.js。
将模板 YAML 文件发布到 Zeabur 市场,或更新现有模板。
创建新模板
npx zeabur@latest template create -f <template-file>.yaml
这会上传 YAML 文件并返回一个模板代码(例如 VTZ4FX)。请保存此代码,以便日后更新时使用。
更新现有模板
npx zeabur@latest template update -c <TEMPLATE_CODE> -f <template-file>.yaml
模板代码是模板 URL 中的标识符:https://zeabur.com/templates/<TEMPLATE_CODE>
删除模板
npx zeabur@latest template delete -c <TEMPLATE_CODE>
验证
发布或更新后,请检查模板页面:
https://zeabur.com/templates/<TEMPLATE_CODE>
或者获取 YAML 文件进行确认:
npx zeabur@latest template get -c <TEMPLATE_CODE> --raw
标志
template create
| 标志 | 描述 |
|---|---|
-f, --file | 要发布的模板 YAML 文件 |
template update
| 标志 | 描述 |
|---|---|
-c, --code | 要更新的模板代码 |
-f, --file | 包含更改的模板 YAML 文件 |
template delete
| 标志 | 描述 |
|---|---|
-c, --code | 要删除的模板代码 |
工作流
# First time: create and note the returned code (use the `zeabur-template` skill to create the YAML first)
npx zeabur@latest template create -f zeabur-template-myapp.yaml
# → Template created: VTZ4FX
# Later: update with changes
npx zeabur@latest template update -c VTZ4FX -f zeabur-template-myapp.yaml
# Verify
npx zeabur@latest template get -c VTZ4FX --raw
评论
支持 Markdown