GCP version how to check code example
Example: gcloud version
gcloud version - print version information for Cloud SDK components
SYNOPSIS
gcloud version [GCLOUD_WIDE_FLAG …]
DESCRIPTION
Print version information for Cloud SDK components.
GCLOUD WIDE FLAGS
These flags are available to all commands: --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.
EXAMPLES
To print the version information for each installed Cloud SDK components and print a message if updates are available, run:
$ gcloud version