Loading...
Loading...
Use when deploying a local project or codebase to Zeabur. Use when the user says "deploy this" or "deploy to Zeabur". Default to direct deploy unless the user explicitly asks for Git-based deployment.
npx skill4agent add zeabur/agent-skills zeabur-deployAlways useto invoke Zeabur CLI. Never usenpx zeabur@latestdirectly or any other installation method. Ifzeaburis not available, install Node.js first.npx
npx zeabur@latest project list -i=false --jsonzeabur-project-createproject createnpx zeabur@latest server list -i=falseproject list --jsonRegion.IDserver-<server-id>zeabur-project-create| 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. |
| Flag | Required | Description |
|---|---|---|
| Yes (non-interactive) | Project ID to deploy on |
| Recommended | Output in JSON format |
| No | Service name (defaults to directory name) |
| No | Service ID to redeploy on (omit to create new service) |
| No | Environment ID (defaults to first environment) |
Note: Do NOT use,--create, or-rflags with deploy commands. If the user needs to create a new project or select a region, use the--regionskill first.zeabur-project-create
--service-idnpx zeabur@latest deploy --project-id <project-id> --jsonservice_idservice_idCLAUDE.md## Zeabur Deployment
- Project ID: <project-id>
- Service ID: <service-id>--service-id--service-idnpx zeabur@latest deploy --project-id <project-id> --service-id <service-id> --jsonzeabur-project-create# 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 |
|---|---|---|
| Yes | Specifies Git-based deployment |
| Non-interactive | Project ID (interactive mode will prompt) |
| Non-interactive | GitHub repository ID |
| Non-interactive | Git branch to deploy from |
| No | Service name (defaults to repo name) |
| No | Keyword to search GitHub repos (interactive mode) |
# 1. Push code to GitHub
git init && git add . && git commit -m "Initial commit"
gh repo create my-app --public --source=. --push
# 2. Get GitHub repo ID (Zeabur uses GitHub's numeric repo ID)
REPO_ID=$(gh api repos/OWNER/my-app --jq .id)
# 3. Deploy from GitHub (PROJECT_ID must be known beforehand — see Prerequisites)
npx zeabur@latest service deploy --json -i=false \
--project-id $PROJECT_ID \
--template GIT \
--repo-id $REPO_ID \
--branch-name main--project-idzeabur-deployment-logs