| name | zeabur-project-create |
| description | Use when creating a new Zeabur project. Use when deploying templates to a new project. Use when user says "create project", "new project", or "set up a new environment". |
Zeabur Project Create
Always use npx zeabur@latest to invoke Zeabur CLI. Never use zeabur directly or any other installation method. If npx is not available, install Node.js first.
Choosing a Region
Do NOT hardcode or guess region codes. Old region codes like hnd1, tpe1 are deprecated. The region must always be derived from the user's server list.
Step 1 — List the user's servers:
npx zeabur@latest server list -i=false --json
Step 2 — Ask the user which server to use:
Present the server list to the user (show name, provider, and region for each) and ask them to pick one. Do NOT choose a server on the user's behalf. Also offer the option to rent a new server if none of the existing ones are suitable.
- If the user has no servers, use the
zeabur-server-catalog skill to browse options, then the zeabur-server-rent skill to rent one.
Step 3 — Use the selected server ID with server- prefix as the region:
The region code format is server-<server-id>, where <server-id> comes from the server list output.
Some templates (e.g. with REQUIRE_DEDICATED_SERVER) can only be deployed on dedicated servers. If you get Unsupported template (code: REQUIRE_DEDICATED_SERVER), rent a dedicated server and recreate the project with its region.
Create Project
npx zeabur@latest project create -n "<project-name>" -r "server-<server-id>" -i=false --json
Get Project ID
PROJECT_ID=$(npx zeabur@latest project list -i=false --json | jq -r '.[] | select(.name == "<project-name>") | ._id')
Deploy Template to Project
npx zeabur@latest template deploy -i=false --json \
-f <template-file> \
--project-id <project-id> \
--var PUBLIC_DOMAIN=myapp \
--var KEY=value
Workflow
npx zeabur@latest server list -i=false --json
npx zeabur@latest project create -n "wrenai-prod" -r "server-<server-id>" -i=false --json
PROJECT_ID=$(npx zeabur@latest project list -i=false --json | jq -r '.[] | select(.name == "wrenai-prod") | ._id')
echo "Project ID: $PROJECT_ID"
echo "Dashboard: https://zeabur.com/projects/$PROJECT_ID"
npx zeabur@latest template deploy -i=false --json -f template.yml --project-id $PROJECT_ID --var PUBLIC_DOMAIN=myapp