Skip to main content

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​

ParameterRequiredDescriptionDefault
-e, --env-id <envId>NoEnvironment ID—
-s, --service-name <serviceName>NoService name; reads cloudbaserc.json when omitted, otherwise prompts—
--build-id <buildId>NoBuild ID, must be a non-negative integer; falls back to the most recent deploymentLatest build
--jsonNoOutput JSONfalse

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.