tcb cloudrun logs process
View runtime logs of a CloudBase Run service by run ID.
Usage
tcb cloudrun logs process -e <envId> --run-id <runId> [--json]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
-e, --env-id <envId> | No | Environment ID | — |
--run-id <runId> | Yes | Deployment run ID, available from tcb cloudrun record list | — |
--json | No | Output JSON | false |
Examples
# Get the RunId from the deployment records first
tcb cloudrun record list -e env-123456 -s my-service
# Runtime logs of a specific run ID
tcb cloudrun logs process -e env-123456 --run-id 123456
# JSON output
tcb cloudrun logs process -e env-123456 --run-id 123456 --json
Output
The default output prints runtime logs line by line. With --json the logs sit in the data.Logs array.
Related Commands
- List deployment records: look up the
RunId - View build logs