gcloud components update Stay organized with collections Save and categorize content based on your preferences.
- 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 thelocal workstation.
The command lists all components it is about to update, and asks forconfirmation before proceeding.
By default, this command will update all components to their latest version.This can be configured by using the
--versionflag to choose aspecific version to update to. This version may also be a version older than theone that is currently installed, thus allowing you to downgrade your GoogleCloud CLI installation.You can see your current Google Cloud CLI version by running:
gcloudversionTo see the latest version of the Google Cloud CLI, run:
gcloudcomponentslistIf you run this command without the
--versionflag and you alreadyhave the latest version installed, no update will be performed. - EXAMPLES
- To update all installed components to the latest version:
gcloudcomponentsupdateTo update all installed components to a fixed Google Cloud CLI version 1.2.3:
gcloudcomponentsupdate--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 olderversion 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 helpfor details.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.