Loading...
Loading...
Use when backing up a Zeabur template to git. Use when user provides a Zeabur template URL like zeabur.com/templates/XXXXXX. Use when user says "save this template", "backup template", or "download template YAML".
npx skill4agent add zeabur/agent-skills zeabur-template-backupAlways useto invoke Zeabur CLI. Never usenpx zeabur@latestdirectly or any other installation method. Ifzeaburis not available, install Node.js first.npx
https://zeabur.com/templates/85IQXQzeabur-template~/Documents/zeabur/zeabur-template/{service-name}/zeabur-template-{service-name}-{TEMPLATE_CODE}.yamlelasticsearch-kibana/zeabur-template-elasticsearch-kibana-85IQXQ.yamldify/zeabur-template-dify-1D4DOW.yamlpostiz/zeabur-template-postiz-v2.12-X2L3BE.yaml.yamlhttps://zeabur.com/templates/{TEMPLATE_CODE}.yamlhttps://zeabur.com/templates/1D4DOWhttps://zeabur.com/templates/1D4DOW.yamlcurlcurl -sL https://zeabur.com/templates/{TEMPLATE_CODE}.yaml -o output.yamlzeabur-templatehttps://zeabur.com/templates/{TEMPLATE_CODE}https://zeabur.com/templates/85IQXQ85IQXQ# Download YAML
curl -sL https://zeabur.com/templates/{TEMPLATE_CODE}.yaml -o /tmp/template.yaml
# Extract template name from YAML metadata.name field
grep -A1 'metadata:' /tmp/template.yaml | grep 'name:' | head -1elasticsearch-kibanaREPO=~/Documents/zeabur/zeabur-template # adjust to your actual path
# Create directory
mkdir -p $REPO/{service-name}
# Move YAML with naming pattern
mv /tmp/template.yaml $REPO/{service-name}/zeabur-template-{service-name}-{TEMPLATE_CODE}.yamlcd $REPO
git add {service-name}/
git commit -m "feat({service-name}): add {Template Name} template"git push| Step | Action |
|---|---|
| 1 | Extract template code from URL |
| 2 | Download YAML via |
| 3 | Read template name from YAML |
| 4 | Derive kebab-case service name |
| 5 | Save to |
| 6 | Git commit with conventional format |
| 7 | Push if user requests |
| Issue | Solution |
|---|---|
| curl returns HTML instead of YAML | Verify the template code is correct |
| Template name has special chars | Use simple kebab-case for directory |
| Already exists | Compare with existing file, update if needed |