tcb cloudrun logs build
View the build logs of a CloudBase Run service.
Usage
tcb cloudrun logs build -e <envId> -s <serviceName> [--build-id <buildId>]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
-e, --env-id <envId> | No | Environment ID | — |
-s, --service-name <serviceName> | No | Service name; reads cloudbaserc.json when omitted, otherwise prompts | — |
--build-id <buildId> | No | Build ID, must be a non-negative integer; falls back to the most recent deployment | Latest build |
--json | No | Output JSON | false |
Examples
# Build logs of the latest deployment
tcb cloudrun logs build -e env-123456 -s my-service
# Build logs of a specific build ID
tcb cloudrun logs build -e env-123456 -s my-service --build-id 123456
# JSON output
tcb cloudrun logs build -e env-123456 -s my-service --build-id 123456 --json
Output
The default output is the build log body. With --json the result also includes the log count, whether more logs exist, the failure type, and the failure reason.
Related Commands
- List deployment records: look up the
BuildId - View runtime logs