zeabur-template-publish
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseZeabur Template Publish
Zeabur 模板发布
Always useto invoke Zeabur CLI. Never usenpx zeabur@latestdirectly or any other installation method. Ifzeaburis not available, install Node.js first.npx
Publish a template YAML file to the Zeabur marketplace, or update an existing one.
请始终使用调用Zeabur CLI。 切勿直接使用npx zeabur@latest或其他任何安装方式。若未安装npx,请先安装Node.js。zeabur
将模板YAML文件发布至Zeabur市场,或更新已有的模板。
Create a New Template
创建新模板
bash
npx zeabur@latest template create -f <template-file>.yamlThis uploads the YAML and returns a template code (e.g., ). Save this code — you'll need it for future updates.
VTZ4FXbash
npx zeabur@latest template create -f <template-file>.yaml此命令会上传YAML文件并返回一个模板编码(例如:)。请保存该编码——后续更新时会用到。
VTZ4FXUpdate an Existing Template
更新现有模板
bash
npx zeabur@latest template update -c <TEMPLATE_CODE> -f <template-file>.yamlThe template code is the identifier from the template URL:
https://zeabur.com/templates/<TEMPLATE_CODE>bash
npx zeabur@latest template update -c <TEMPLATE_CODE> -f <template-file>.yaml模板编码可从模板URL中获取:
https://zeabur.com/templates/<TEMPLATE_CODE>Delete a Template
删除模板
bash
npx zeabur@latest template delete -c <TEMPLATE_CODE>bash
npx zeabur@latest template delete -c <TEMPLATE_CODE>Verify
验证
After publishing or updating, check the template page:
https://zeabur.com/templates/<TEMPLATE_CODE>Or fetch the YAML to confirm:
bash
npx zeabur@latest template get -c <TEMPLATE_CODE> --raw发布或更新完成后,请查看模板页面:
https://zeabur.com/templates/<TEMPLATE_CODE>或获取YAML文件以确认:
bash
npx zeabur@latest template get -c <TEMPLATE_CODE> --rawFlags
命令参数
template create
template createtemplate create
template create| Flag | Description |
|---|---|
| Template YAML file to publish |
| 参数 | 描述 |
|---|---|
| 要发布的模板YAML文件 |
template update
template updatetemplate update
template update| Flag | Description |
|---|---|
| Template code to update |
| Template YAML file with changes |
| 参数 | 描述 |
|---|---|
| 要更新的模板编码 |
| 包含修改内容的模板YAML文件 |
template delete
template deletetemplate delete
template delete| Flag | Description |
|---|---|
| Template code to delete |
| 参数 | 描述 |
|---|---|
| 要删除的模板编码 |
Workflow
工作流示例
bash
undefinedbash
undefinedFirst time: create and note the returned code (use the zeabur-template
skill to create the YAML first)
zeabur-template首次操作:创建模板并记录返回的编码(请先使用zeabur-template
技能创建YAML文件)
zeabur-templatenpx zeabur@latest template create -f zeabur-template-myapp.yaml
npx zeabur@latest template create -f zeabur-template-myapp.yaml
→ Template created: VTZ4FX
→ 模板已创建:VTZ4FX
Later: update with changes
后续操作:更新模板内容
npx zeabur@latest template update -c VTZ4FX -f zeabur-template-myapp.yaml
npx zeabur@latest template update -c VTZ4FX -f zeabur-template-myapp.yaml
Verify
验证
npx zeabur@latest template get -c VTZ4FX --raw
undefinednpx zeabur@latest template get -c VTZ4FX --raw
undefined