zeabur-context
Zeabur Context Setup
The Pattern
# 1. Find project ID
npx zeabur@latest project list
# 2. Set project (NOTE: "project" is subcommand, not flag)
npx zeabur@latest context set project --id <project-id> -i=false -y
# 3. Set environment (interactive, auto-selects if only one env)
npx zeabur@latest context set env
# 4. Verify (shows project, environment, and service IDs)
npx zeabur@latest context get -i=false
Why Set Environment Context
Many commands require --env-id (e.g. service suspend, deployment log, service restart). Once environment context is set, these commands auto-read env-id — no need to pass --env-id manually.
# Without context: must pass --env-id every time
npx zeabur@latest service suspend -i=false --id <id> --env-id <env-id>
# With context: env-id is read automatically
npx zeabur@latest service suspend -i=false --id <id>
Common Mistakes
# ❌ WRONG - treats project-id as flag
npx zeabur@latest context set --project-id xxx
# ✅ CORRECT - "project" is subcommand
npx zeabur@latest context set project --id xxx -i=false -y
Check Current Context
npx zeabur@latest context get -i=false
Output shows project, environment, and service IDs:
CONTEXT NAME ID
Project my-project 698b63146b07a3677cc4fc78
Environment production 698b63142579f38ed02c7b18
Service <not set> <not set>
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