Skip to main content

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

ParameterDescriptionRequired
-e, --env-id <envId>Environment IDNo
-s, --service-name <serviceName>Service name. If omitted, it is read from cloudbaserc.json first, then requested interactivelyNo
--build-id <buildId>Build ID. Must be a non-negative integer. Uses the most recent deployment record when omittedNo
--jsonOutput in JSON formatNo
-h, --helpDisplay command helpNo

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.