mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
NAME
|
|
gcloud builds log - stream the logs for a build
|
|
|
|
SYNOPSIS
|
|
gcloud builds log BUILD [--region=REGION] [--stream] [GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
Stream the logs for a build.
|
|
|
|
EXAMPLES
|
|
To stream logs for in progress build 123-456-789:
|
|
|
|
$ gcloud builds log --stream `123-456-789`
|
|
|
|
To display logs for a completed build 098-765-432:
|
|
|
|
$ gcloud builds log `098-765-432`
|
|
|
|
POSITIONAL ARGUMENTS
|
|
BUILD
|
|
The build whose logs shall be printed. The ID of the build is printed
|
|
at the end of the build submission process, or in the ID column when
|
|
listing builds.
|
|
|
|
FLAGS
|
|
--region=REGION
|
|
The region of the Cloud Build Service to use. Must be set to a
|
|
supported region name (e.g. us-central1). If unset, the global service
|
|
region is used.
|
|
|
|
--stream
|
|
If a build is ongoing, stream the logs to stdout until the build
|
|
completes.
|
|
|
|
GCLOUD WIDE FLAGS
|
|
These flags are available to all commands: --access-token-file, --account,
|
|
--billing-project, --configuration, --flags-file, --flatten, --format,
|
|
--help, --impersonate-service-account, --log-http, --project, --quiet,
|
|
--trace-token, --user-output-enabled, --verbosity.
|
|
|
|
Run $ gcloud help for details.
|
|
|
|
NOTES
|
|
These variants are also available:
|
|
|
|
$ gcloud alpha builds log
|
|
|
|
$ gcloud beta builds log
|
|
|