mcpField
Z
zeabur-template-publish

zeabur-template-publish

github.com/zeabur云与 DevOps39157 次安装7 周前更新
代码仓库

关于 zeabur-template-publish

zeabur-template-publish 是用于将模板 YAML 文件发布到 Zeabur 市场并更新现有模板的技能。它通过 npx 调用 Zeabur CLI,也提供删除和验证模板的命令。

主要功能

  1. 01发布模板 YAML 文件
  2. 02更新现有模板
  3. 03删除模板
  4. 04获取 YAML 以供验证
  5. 05通过 npx 调用 Zeabur CLI

适用场景

  1. 01发布新的市场模板
  2. 02使用模板代码更新模板
  3. 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