/zeabur:zeabur-deployfrom zeabur
Deploys local projects or codebases to Zeabur via direct deploy or Git-based deployment. Handles project selection, server-bound deployments, and CLI invocation.
Ships in zeabur. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Always use
npx zeabur@latestto invoke Zeabur CLI. Never usezeaburdirectly or any other installation method. Ifnpxis not available, install Node.js first.
Before using this skill, you must first determine which Zeabur project to deploy to. If neither the conversation history nor project files mention a project, run:
npx zeabur@latest project list -i=false --json
zeabur-project-create skill. Do NOT run project create CLI commands directly — the skill handles region selection via server list, which is required.Do not proceed with deployment until the target project is confirmed.
If the user asks to deploy to a specific server (e.g. "deploy to my AWS Tokyo server"), do NOT SSH into the server. Servers running ZeaburOS are managed via the platform — you deploy services through the Zeabur CLI, not by manually placing files on the machine.
Only ZeaburOS servers can host projects. A rented server starts as plain Ubuntu (base OS and SSH, no Zeabur services); ZeaburOS has to be installed on it first — see the
zeabur-server-rentskill. If deploying to a server fails because it has no Zeabur services, that is why; tell the user instead of trying to set the machine up over SSH.
To find the project bound to a server:
npx zeabur@latest server list -i=false (or from conversation context).project list --json output, look for a project whose Region.ID matches server-<server-id>.zeabur-project-create skill to create one on that server.Zeabur supports two ways to deploy a project:
| Method | When to use |
|---|---|
| Direct deploy (default) | User says "deploy this project/website/app". No Git repo required. Fast and simple. |
| Git deploy | User explicitly asks to deploy via Git/GitHub, or wants CI/CD with automatic redeploy on push. |
Default to direct deploy unless the user specifically requests Git-based deployment.
Deploy the current local directory to Zeabur with one command.
| Flag | Required | Description |
|---|---|---|
--project-id | Yes (non-interactive) | Project ID to deploy on |
--json | Recommended | Output in JSON format |
--name | No | Service name (defaults to directory name) |
--service-id | No | Service ID to redeploy on (omit to create new service) |
--environment-id | No | Environment ID (defaults to first environment) |
Note: Do NOT use
--create,-r, or--regionflags with deploy commands. If the user needs to create a new project or select a region, use thezeabur-project-createskill first.
When deploying for the first time, omit --service-id — a new service is created automatically:
npx zeabur@latest deploy --project-id <project-id> --json
The response includes a service_id. You MUST save this service_id for all subsequent deploys. Write it to the current project's CLAUDE.md immediately:
## Zeabur Deployment
- Project ID: <project-id>
- Service ID: <service-id>
IMPORTANT: When redeploying code changes, you MUST pass --service-id to update the existing service. Omitting --service-id creates a NEW duplicate service every time.
npx zeabur@latest deploy --project-id <project-id> --service-id <service-id> --json
Do NOT use this flow for version upgrades / downgrades of prebuilt or marketplace services (e.g. "upgrade PostgreSQL to 16", "downgrade n8n to 1.2"). That is a version switch, not a code redeploy — use the
zeabur-update-serviceskill's tag update instead. Redeploying in place of a tag change can orphan or wipe the service's mounted disk.
If no project exists yet, invoke the zeabur-project-create skill (do not run CLI commands directly).
If the user explicitly wants Git-based deployment (e.g. for CI/CD, auto-redeploy on push):
# Non-interactive mode — required parameters only
npx zeabur@latest service deploy --json -i=false \
--project-id <project-id> \
--template GIT \
--repo-id <repo-id> \
--branch-name <branch>
# With optional service name
npx zeabur@latest service deploy --json -i=false \
--project-id <project-id> \
--template GIT \
--repo-id <repo-id> \
--branch-name <branch> \
--name "<service-name>"
| Flag | Required | Description |
|---|---|---|
--template GIT | Yes | Specifies Git-based deployment |
--project-id | Non-interactive | Project ID (interactive mode will prompt) |
--repo-id | Non-interactive | GitHub repository ID |
--branch-name | Non-interactive | Git branch to deploy from |
--name | No | Service name (defaults to repo name) |
--keyword | No | Keyword to search GitHub repos (interactive mode) |
Git deploy workflow:
# 1. Search for the user's GitHub repo
npx zeabur@latest service search-repo <keyword> --json -i=false
# Returns: [{"Name":"my-app","Owner":"user","URL":"...","ID":12345}, ...]
# If multiple results are returned, ask the user which repo to deploy.
# The agent (not the CLI) is responsible for disambiguation.
# 2. Deploy from GitHub using the repo ID from search results
npx zeabur@latest service deploy --json -i=false \
--project-id $PROJECT_ID \
--template GIT \
--repo-id <repo-id> \
--branch-name main
After deployment, Zeabur will auto-redeploy on every push to the selected branch.
Only guide the user through this flow when they specifically ask for Git-based deployment.
--project-id — a new service is created automatically. No Git history or GitHub account required.zeabur-deployment-logs skill to check build and runtime logs.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zeabur/agent-skills --plugin zeabur32 skills in this plugin
/zeabur-authUse when logging in, logging out, or checking Zeabur auth status. Use when user says "login", "log in", "登入", "logout", "log out", "登出", "auth status", "am I logged in", or "who am I"./zeabur-cluster-scaleUse when scaling a dedicated Kubernetes cluster (Linode LKE or AWS EKS) on Zeabur — listing node pools, changing node counts, or adding/removing node pools. Use when user says "scale my cluster", "add nodes", "remove nodes", "resize node pool", "加節點", "擴容", "縮容". Do NOT use for renting new servers (use zeabur-server-rent) or for single-VM dedicated servers (they have no node pools)./zeabur-databaseUse when deploying a database to Zeabur. Use when user needs MySQL, PostgreSQL, MongoDB, or Redis. Use when user says "I need a database", "add database", "deploy postgres", "set up MySQL", "add Redis", "add MongoDB", or "connect to database". Also use when user mentions data persistence issues like "data lost after restart", "data not saved", "data disappears", "need persistent storage for data", or "how to persist data". Also use when integrating a database with an existing service./zeabur-deployment-logsUse when viewing service runtime or build logs. Use when user says "show logs", "why did deploy fail", "check build output", or "debug runtime error"./zeabur-dockerfileUse when generating a Dockerfile for deploying a project to Zeabur. Use when the user needs help writing a Dockerfile for Node.js, Python, Go, Rust, PHP, Ruby, Java, .NET, or Elixir projects. Use when troubleshooting Dockerfile build failures on Zeabur./zeabur-domain-dnsUse when managing DNS records for Zeabur-registered domains. Use when user says "add DNS record", "update DNS", "delete DNS record", "list DNS records", "set A record", "add CNAME", or "manage DNS". NOT for service domain binding (use zeabur-domain-url instead).Other plugins' skills for the same job