HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/help/man/man1/gcloud_deployment-manager_deployments_update.1
.TH "GCLOUD_DEPLOYMENT\-MANAGER_DEPLOYMENTS_UPDATE" 1



.SH "NAME"
.HP
gcloud deployment\-manager deployments update \- update a deployment based on a provided config file



.SH "SYNOPSIS"
.HP
\f5gcloud deployment\-manager deployments update\fR \fIDEPLOYMENT_NAME\fR [\fB\-\-async\fR] [\fB\-\-create\-policy\fR=\fICREATE_POLICY\fR;\ default="create\-or\-acquire"] [\fB\-\-delete\-policy\fR=\fIDELETE_POLICY\fR;\ default="delete"] [\fB\-\-description\fR=\fIDESCRIPTION\fR] [\fB\-\-fingerprint\fR=\fIFINGERPRINT\fR] [\fB\-\-preview\fR] [\fB\-\-properties\fR=[\fIPROPERTIES\fR,...]] [\fB\-\-remove\-labels\fR=[\fIKEY\fR,...]] [\fB\-\-update\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-composite\-type\fR=\fICOMPOSITE_TYPE\fR\ |\ \fB\-\-config\fR=\fICONFIG\fR\ |\ \fB\-\-template\fR=\fITEMPLATE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

This command will update a deployment with the new config file provided.
Different policies for create, update, and delete policies can be specified.



.SH "EXAMPLES"

To update an existing deployment with a new config YAML file, run:

.RS 2m
$ gcloud deployment\-manager deployments update my\-deployment \e
    \-\-config=new_config.yaml
.RE

To update an existing deployment with a new config template file, run:

.RS 2m
$ gcloud deployment\-manager deployments update my\-deployment \e
    \-\-template=new_config.{jinja|py}
.RE

To update an existing deployment with a composite type as a new config, run:

.RS 2m
$ gcloud deployment\-manager deployments update my\-deployment \e
    \-\-composite\-type=<project\-id>/composite:<new\-config>
.RE


To preview an update to an existing deployment without actually modifying the
resources, run:

.RS 2m
$ gcloud deployment\-manager deployments update my\-deployment \e
    \-\-config=new_config.yaml \-\-preview
.RE

To apply an update that has been previewed, provide the name of the previewed
deployment, and no config file:

.RS 2m
$ gcloud deployment\-manager deployments update my\-deployment
.RE

To specify different create, update, or delete policies, include any subset of
the following flags:

.RS 2m
$ gcloud deployment\-manager deployments update my\-deployment \e
    \-\-config=new_config.yaml \-\-create\-policy=acquire \e
    \-\-delete\-policy=abandon
.RE

To perform an update without waiting for the operation to complete, run:

.RS 2m
$ gcloud deployment\-manager deployments update my\-deployment \e
    \-\-config=new_config.yaml \-\-async
.RE

To update an existing deployment with a new config file and a fingerprint, run:

.RS 2m
$ gcloud deployment\-manager deployments update my\-deployment \e
    \-\-config=new_config.yaml \-\-fingerprint=deployment\-fingerprint
.RE

Either the \f5\-\-config\fR, \f5\-\-template\fR, or \f5\-\-composite\-type\fR
flag is required unless launching an already\-previewed update to a deployment.
If you want to update a deployment's metadata, such as the labels or
description, you must run a separate command with \f5\-\-update\-labels\fR,
\f5\-\-remove\-labels\fR, or \f5\-\-description\fR, as applicable.

More information is available at
https://cloud.google.com/deployment\-manager/docs/deployments/updating\-deployments.



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
\fIDEPLOYMENT_NAME\fR

Deployment name.


.RE
.sp

.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-async\fR

Return immediately, without waiting for the operation in progress to complete.

.TP 2m
\fB\-\-create\-policy\fR=\fICREATE_POLICY\fR; default="create\-or\-acquire"

Create policy for resources that have changed in the update. \fICREATE_POLICY\fR
must be one of: \fBacquire\fR, \fBcreate\-or\-acquire\fR.

.TP 2m
\fB\-\-delete\-policy\fR=\fIDELETE_POLICY\fR; default="delete"

Delete policy for resources that will change as part of an update or delete.
\f5delete\fR deletes the resource while \f5abandon\fR just removes the resource
reference from the deployment. \fIDELETE_POLICY\fR must be one of:
\fBabandon\fR, \fBdelete\fR.

.TP 2m
\fB\-\-description\fR=\fIDESCRIPTION\fR

The new description of the deployment.

.TP 2m
\fB\-\-fingerprint\fR=\fIFINGERPRINT\fR

The fingerprint to use in requests to modify a deployment. If not specified, a
get deployment request will be made to fetch the latest fingerprint. A
fingerprint is a randomly generated value that is part of the update, stop, and
cancel\-preview request to perform optimistic locking. It is initially generated
by Deployment Manager and changes after every request to modify data. The latest
fingerprint is printed when deployment data is modified.

.TP 2m
\fB\-\-preview\fR

Preview the requested update without making any changes to the underlying
resources. (default=False)

.TP 2m
\fB\-\-properties\fR=[\fIPROPERTIES\fR,...]

A comma separated, key:value, map to be used when deploying a template file or
composite type directly.

.TP 2m
\fB\-\-remove\-labels\fR=[\fIKEY\fR,...]

List of label keys to remove. If a label does not exist it is silently ignored.
If \f5\-\-update\-labels\fR is also specified then \f5\-\-update\-labels\fR is
applied first.

.TP 2m
\fB\-\-update\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]

List of label KEY=VALUE pairs to update. If a label exists, its value is
modified. Otherwise, a new label is created.

Keys must start with a lowercase character and contain only hyphens (\f5\-\fR),
underscores (\f5_\fR), lowercase characters, and numbers. Values must contain
only hyphens (\f5\-\fR), underscores (\f5_\fR), lowercase characters, and
numbers.

.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-composite\-type\fR=\fICOMPOSITE_TYPE\fR

Name of a composite type to deploy. For an example of creating and deploying a
composite type, see:
https://cloud.google.com/deployment\-manager/docs/configuration/templates/create\-composite\-types#examplecompositetype

.TP 2m
\fB\-\-config\fR=\fICONFIG\fR

Filename of a top\-level yaml config that specifies resources to deploy. For a
guide to creating a configuration, refer to
https://cloud.google.com/deployment\-manager/docs/configuration/create\-basic\-configuration

.TP 2m
\fB\-\-template\fR=\fITEMPLATE\fR

Filename of a top\-level jinja or python config template.


.RE
.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.



.SH "NOTES"

These variants are also available:

.RS 2m
$ gcloud alpha deployment\-manager deployments update
.RE

.RS 2m
$ gcloud beta deployment\-manager deployments update
.RE