gcloud

C++
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 versiongcloud init: Initialize, authorize, and configure the gcloud tool.
gcloud version: Display version and installed components.
gcloud components install: Install specific components.
gcloud components update: Update your Cloud SDK to the latest version.
gcloud config set project: Set a default Google Cloud project to work on.
gcloud info: Display current gcloud tool environment details.
Source

Also in C++: