File: //snap/google-cloud-cli/current/help/man/man1/gcloud_alpha_projects_update.1
.TH "GCLOUD_ALPHA_PROJECTS_UPDATE" 1
.SH "NAME"
.HP
gcloud alpha projects update \- update the name and/or labels of a project
.SH "SYNOPSIS"
.HP
\f5gcloud alpha projects update\fR \fIPROJECT_ID_OR_NUMBER\fR (\fB\-\-name\fR=\fINAME\fR\ \fB\-\-update\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]\ \fB\-\-clear\-labels\fR\ |\ \fB\-\-remove\-labels\fR=[\fIKEY\fR,...]) [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR Update the name and/or labels of the given project.
This command can fail for the following reasons:
.RS 2m
.IP "\(bu" 2m
There is no project with the given ID.
.IP "\(bu" 2m
The active account does not have Owner or Editor permissions for the given
project.
.RE
.sp
.SH "EXAMPLES"
The following command updates a project with the ID \f5example\-foo\-bar\-1\fR
to have the name \f5Foo Bar & Grill\fR and removes the label \f5dive\fR:
.RS 2m
$ gcloud alpha projects update example\-foo\-bar\-1 \e
\-\-name="Foo Bar & Grill" \-\-remove\-labels=dive
.RE
The following command updates a project with the ID \f5example\-foo\-bar\-1\fR
to have labels \f5foo\fR and \f5bar\fR with values of \f5abc\fR and \f5def\fR,
respectively:
.RS 2m
$ gcloud alpha projects update example\-foo\-bar\-1 \e
\-\-update\-labels="foo=abc,bar=def"
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIPROJECT_ID_OR_NUMBER\fR
ID or number for the project you want to update.
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
At least one of these must be specified:
.RS 2m
.TP 2m
\fB\-\-name\fR=\fINAME\fR
New name for the project.
.TP 2m
Labels Flags
.RS 2m
.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\-\-clear\-labels\fR
Remove all labels. If \f5\-\-update\-labels\fR is also specified then
\f5\-\-clear\-labels\fR is applied first.
For example, to remove all labels:
.RS 2m
$ gcloud alpha projects update \-\-clear\-labels
.RE
To remove all existing labels and create two new labels, \f5\fIfoo\fR\fR and
\f5\fIbaz\fR\fR:
.RS 2m
$ gcloud alpha projects update \-\-clear\-labels \e
\-\-update\-labels foo=bar,baz=qux
.RE
.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.
.RE
.RE
.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"
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:
.RS 2m
$ gcloud projects update
.RE
.RS 2m
$ gcloud beta projects update
.RE