AgentSkillsCN

zeabur-service-list

当其他命令需要服务 ID 时,可选用此功能。当您想了解项目中有哪些服务时,亦可选用此功能。

SKILL.md
--- frontmatter
name: zeabur-service-list
description: Use when needing service IDs for other commands. Use when checking what services exist in a project.

Zeabur Service List

Get Service IDs

bash
# Set project context first
npx zeabur@latest context set project --id=<project-id> -i=false -y

# List all services
npx zeabur@latest service list -i=false

Output Example

code
     ID              NAME        TYPE          CREATEDAT
-----------------+-------------+-------------+------------------
 696faeb192eadb...  postgresql   PREBUILT_V2   18 minute(s) ago
 696faeb192eadb...  api          PREBUILT_V2   18 minute(s) ago
 696faeb192eadb...  web          PREBUILT_V2   18 minute(s) ago

Common Use Cases

NeedCommand
Check variablesvariable list --id <service-id>
View logsdeployment log --service-id <id> --env-id <env-id>
Restart serviceservice restart --id <id> --env-id <env-id>

Always use --id not --name — name lookup is unreliable.