zeabur-template-publish
Zeabur Template Publish
Always use
npx zeabur@latestto invoke Zeabur CLI. Never usezeaburdirectly or any other installation method. Ifnpxis not available, install Node.js first.
Publish a template YAML file to the Zeabur marketplace, or update an existing one.
Create a New Template
npx zeabur@latest template create -f <template-file>.yaml
This uploads the YAML and returns a template code (e.g., VTZ4FX). Save this code — you'll need it for future updates.
Update an Existing Template
npx zeabur@latest template update -c <TEMPLATE_CODE> -f <template-file>.yaml
The template code is the identifier from the template URL: https://zeabur.com/templates/<TEMPLATE_CODE>
Delete a Template
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:
npx zeabur@latest template get -c <TEMPLATE_CODE> --raw
Flags
template create
| Flag | Description |
|---|---|
-f, --file |
Template YAML file to publish |
template update
| Flag | Description |
|---|---|
-c, --code |
Template code to update |
-f, --file |
Template YAML file with changes |
template delete
| Flag | Description |
|---|---|
-c, --code |
Template code to delete |
Workflow
# 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
More from zeabur/zeabur-claude-plugin
zeabur-deployment-logs
Use when viewing service runtime or build logs. Use when user says "show logs", "why did deploy fail", "check build output", or "debug runtime error".
54zeabur-template
Use when creating, editing, validating, or troubleshooting a Zeabur template YAML. Use when converting docker-compose to Zeabur template. Do NOT use for deploying templates (use zeabur-template-deploy instead).
53zeabur-restart
Use when restarting a Zeabur service. Use when user says "restart", "reboot service", or "service is stuck/frozen".
53zeabur-domain-url
Use when services need public URL for redirects or CORS. Use when WEB_URL or similar has trailing slash issues. Use when user reports "redirect goes to wrong URL", "CORS error", or "trailing slash problem". Also use when user says "add domain", "set up domain", "bind domain", "create domain", or "manage domains" for a Zeabur service.
52zeabur-variables
Use for ALL Zeabur environment variable operations — create, list, update, delete, or troubleshoot. Use when user says "set env var", "add variable", "create variable", "update variable", "delete variable", "change env var", or "why is my variable empty". Also use when variables are empty or SERVICE_NOT_FOUND errors.
51zeabur-update-service
Use when modifying service config without full redeploy. Use when updating env vars and restarting single service. Use when user says "change env var", "update config", "fix variable without redeploying", "upgrade service version", "update image tag", or "change service tag".
49