zeabur-deployment-logs
3
总安装量
1
周安装量
#59652
全站排名
安装命令
npx skills add https://github.com/zeabur/zeabur-claude-plugin --skill zeabur-deployment-logs
Agent 安装分布
amp
1
opencode
1
kimi-cli
1
codex
1
github-copilot
1
gemini-cli
1
Skill 文档
Zeabur Deployment Logs
Important: Always Use –env-id
deployment log often requires --env-id even for single-environment projects (unlike variable list which auto-selects). Always get the env-id first and pass it explicitly.
Symptom
ERROR: when deployment-id is not specified, env-id is required
ERROR: environment is required
Workflow
# 1. Set project context
npx zeabur@latest context set project --id <project-id> -i=false -y
# 2. Get service ID
npx zeabur@latest service list -i=false
# 3. Get env-id (see methods below)
# 4. View logs with env-id
npx zeabur@latest deployment log --service-id <service-id> --env-id <env-id> -t runtime -i=false 2>&1 | tail -50
Get env-id
# Method 1: From variable list output
npx zeabur@latest variable list --id <service-id> -i=false
# Shows: "Only one environment... select <production> automatically"
# Method 2: Extract from error message
ENV_ID=$(npx zeabur@latest deployment log --service-id <service-id> 2>&1 | grep -o "environment-[a-f0-9]*" | head -1 | cut -d'-' -f2)
View logs with env-id
# Runtime logs
npx zeabur@latest deployment log \
--service-id <id> \
--env-id <env-id> \
-t runtime \
-i=false
# Build logs
npx zeabur@latest deployment log \
--service-id <id> \
--env-id <env-id> \
-t build \
-i=false
# Watch logs (live tail)
npx zeabur@latest deployment log \
--service-id <id> \
--env-id <env-id> \
-w \
-i=false
Tips
| Tip | Details |
|---|---|
Use tail -50 |
Logs can be verbose, pipe to tail for recent entries |
Use grep to filter |
... 2>&1 | grep -i "error|started|ready" |
| Note singular | deployment log not deployment logs |
| Check service status | Look for SERVER STARTED, Ready, listening |