- NAME
- gcloud-components-update - Ensure that the latest version of each specified component, and the latest version of all components upon which the specified components directly or indirectly depend, is installed on the local workstation. If the command includes one or more names of components or packages, the specified components are the named components and the components contained in the named packages; if the command does not name any components or packages, the specified components are all installed components.
- SYNOPSIS
-
gcloud components update [COMPONENT-IDS …] [--format FORMAT] [--help] [--project PROJECT] [--quiet, -q] [-h]
- DESCRIPTION
- Download the lastest version of each listed item, and the latest version of all components upon which the listed items directly or indirectly depend, if that version is not already installed on the local workstation. The items may be individual components or preconfigured packages. If a downloaded component was not previously installed, the downloaded version is installed. If an earlier version of the component was previously installed, that version is replaced by the downloaded version.
-
If, for example, the component
unicorn-factory
depends on the componenthorn-factory
, installing the latest version ofunicorn-factory
will cause the version ofhorn-factory
upon which it depends to be installed as well, if it is not already installed. The command lists all components it is about to install, and asks for confirmation before proceeding. - POSITIONAL ARGUMENTS
-
-
[COMPONENT-IDS …]
- The IDs of the components to be updated or installed.
-
- FLAGS
-
-
--format
FORMAT
- Specify a format for printed output. By default, a command-specific human-friendly output format is used. Setting this flag to one of the available options will serialize the result of the command in the chosen format and print it to stdout. Supported formats are: "json", "text", "yaml".
-
--help
- Display detailed help.
-
--project
PROJECT
- Google Cloud Platform project to use for this invocation.
-
--quiet
- Disable all interactive prompts when running gcloud commands. If input is required, defaults will be used, or an error will be raised.
-
-h
- Print a summary help and exit.
-
- EXAMPLES
-
The following command ensures that the latest version is installed for
component-1
,component-2
, and all components that depend, directly or indirectly, on eithercomponent-1
orcomponent-2
: -
$ gcloud components update component-1 component-2
gcloud components update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License , and code samples are licensed under the Apache 2.0 License . For details, see our Site Policies .
Last updated August 11, 2014.