File: //snap/google-cloud-cli/current/help/man/man1/gcloud_components_update.1
.TH "GCLOUD_COMPONENTS_UPDATE" 1
.SH "NAME"
.HP
gcloud components update \- update all of your installed components to the latest version
.SH "SYNOPSIS"
.HP
\f5gcloud components update\fR [\fB\-\-version\fR=\fIVERSION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Ensure that the latest version of all installed components is installed on the
local workstation.
The command lists all components it is about to update, and asks for
confirmation before proceeding.
By default, this command will update all components to their latest version.
This can be configured by using the \f5\-\-version\fR flag to choose a specific
version to update to. This version may also be a version older than the one that
is currently installed, thus allowing you to downgrade your Google Cloud CLI
installation.
You can see your current Google Cloud CLI version by running:
.RS 2m
$ gcloud version
.RE
To see the latest version of the Google Cloud CLI, run:
.RS 2m
$ gcloud components list
.RE
If you run this command without the \f5\-\-version\fR flag and you already have
the latest version installed, no update will be performed.
.SH "EXAMPLES"
To update all installed components to the latest version:
.RS 2m
$ gcloud components update
.RE
To update all installed components to a fixed Google Cloud CLI version 1.2.3:
.RS 2m
$ gcloud components update \-\-version=1.2.3
.RE
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-version\fR=\fIVERSION\fR
An optional Google Cloud CLI version to update your components to. By default,
components are updated to the latest available version. By selecting an older
version you can downgrade your Google Cloud CLI installation.
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.