- NAME
-
- gcloud components update - update all of your installed components to the latest version
- SYNOPSIS
-
-
gcloud components update
[--version
=VERSION
] [GCLOUD_WIDE_FLAG …
]
-
- 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
--version
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:
gcloud version
To see the latest version of the Google Cloud CLI, run:
gcloud components list
If you run this command without the
--version
flag and you already have the latest version installed, no update will be performed. - EXAMPLES
-
To update all installed components to the latest version:
gcloud components update
To update all installed components to a fixed Google Cloud CLI version 1.2.3:
gcloud components update --version=1.2.3
- FLAGS
-
--version
=VERSION
- 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.
- 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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-04 UTC.