View Build Logs
Use tcb cloudrun logs build to view logs for a specified Cloud Hosting service build.
Basic Usage
tcb cloudrun logs build -e <envId> -s <serviceName>
Examples
# View logs for the most recent deployment build
tcb cloudrun logs build -e env-123456 -s my-service
# View logs for a specified build ID
tcb cloudrun logs build -e env-123456 -s my-service --build-id 123456
# Output JSON
tcb cloudrun logs build -e env-123456 -s my-service --build-id 123456 --json
Command Parameters
| Parameter | Description | Required |
|---|---|---|
-e, --env-id <envId> | Environment ID | No |
-s, --service-name <serviceName> | Service name. If omitted, it is read from cloudbaserc.json first, then requested interactively | No |
--build-id <buildId> | Build ID. Must be a non-negative integer. Uses the most recent deployment record when omitted | No |
--json | Output in JSON format | No |
-h, --help | Display command help | No |
Output
By default, the command prints the build log text. With --json, it also returns log counts, whether more logs are available, the failure type, and the failure reason.