- INFORMATION
-
gcloud beta app-lifecycle-manager flags createis supported in universe domainuniverse; however, some of the values used in the help text may not be available. Command examples may not work as-is and may requires changes before execution. - NAME
-
- gcloud beta app-lifecycle-manager flags create - create Flag
- SYNOPSIS
-
-
gcloud beta app-lifecycle-manager flags createFLAG--flag-value-type=FLAG_VALUE_TYPE--key=KEY--unit-kind=UNIT_KIND[--annotations=[ANNOTATIONS,…]] [--description=DESCRIPTION] [--evaluation-spec=[defaultTarget=DEFAULTTARGET]] [--flag-set=FLAG_SET] [--labels=[LABELS,…]] [--location=LOCATION] [--state=STATE] [--variants=[booleanValue=BOOLEANVALUE],[description=DESCRIPTION],[doubleValue=DOUBLEVALUE],[id=ID],[integerValue=INTEGERVALUE],[stringValue=STRINGVALUE]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)Create a Flag - EXAMPLES
-
To create a Flag, run:
gcloud beta app-lifecycle-manager flags create - POSITIONAL ARGUMENTS
-
-
Flag resource - ID of the Flag:
"projects/{project}/locations/{location}/flags/{flag_id}"This follows the standard Google Cloud naming scheme (URI). This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
flagon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
flagon the command line with a fully specified name; -
provide the argument
--locationon the command line.
This must be specified.
FLAG-
ID of the flag or fully qualified identifier for the flag.
To set the
flagattribute:-
provide the argument
flagon the command line.
-
provide the argument
-
provide the argument
-
Flag resource - ID of the Flag:
- REQUIRED FLAGS
-
--flag-value-type=FLAG_VALUE_TYPE-
The type of the flag's value, e.g. BOOLEAN (required).
FLAG_VALUE_TYPEmust be one of:bool- The flag's value type is a boolean.
double- The flag's value type is a double.
int- The flag's value type is an integer.
string- The flag's value type is a string.
--key=KEY- Flag key used in client runtime evaluation (required). Max length: 256 bytes.
-
UnitKind resource - Reference to the UnitKind that can consume this Flag. This
represents a Cloud resource. (NOTE) Some attributes are not given arguments in
this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
--unit-kindon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
--unit-kindon the command line with a fully specified name; -
provide the argument
--locationon the command line.
This must be specified.
--unit-kind=UNIT_KIND-
ID of the unitKind or fully qualified identifier for the unitKind.
To set the
unit-kindattribute:-
provide the argument
--unit-kindon the command line.
-
provide the argument
-
provide the argument
- OPTIONAL FLAGS
-
--annotations=[ANNOTATIONS,…]-
Unstructured key-value map stored with a resource that may be set by external
tools to store and retrieve arbitrary metadata. Annotations are not queryable
and should be preserved when modifying objects.
KEY-
Sets
KEYvalue. VALUE-
Sets
VALUEvalue.
Shorthand Example:--annotations=string=string
JSON Example:--annotations='{"string": "string"}'
File Example:--annotations=path_to_file.(yaml|json)
--description=DESCRIPTION- A description of the flag. Max length: 500 bytes.
--evaluation-spec=[defaultTarget=DEFAULTTARGET]-
Specification of how the Flag value should be evaluated.
defaultTarget- Default variant for the flag.
Shorthand Example:--evaluation-spec=defaultTarget=string
JSON Example:--evaluation-spec='{"defaultTarget": "string"}'
File Example:--evaluation-spec=path_to_file.(yaml|json)
--flag-set=FLAG_SET- Flag set this flag belongs to.
--labels=[LABELS,…]-
The labels on the resource, which can be used for categorization.
KEY-
Keys must start with a lowercase character and contain only hyphens
(
-), underscores (_), lowercase characters, and numbers. VALUE-
Values must contain only hyphens (
-), underscores (_), lowercase characters, and numbers.
Shorthand Example:--labels=string=string
JSON Example:--labels='{"string": "string"}'
File Example:--labels=path_to_file.(yaml|json)
--location=LOCATION- For resources [flag, unit-kind], provides fallback value for resource location attribute. When the resource's full URI path is not provided, location will fallback to this flag value.
--state=STATE-
Current state of the flag.
STATEmust be one of:active- The flag is in the active state.
cleanup- The flag is in the cleanup state and ready to be deleted.
in-development- The flag is currently in development.
sunsetting- The flag is in the sunsetting state, indicating it is being phased out.
--variants=[booleanValue=BOOLEANVALUE],[description=DESCRIPTION],[doubleValue=DOUBLEVALUE],[id=ID],[integerValue=INTEGERVALUE],[stringValue=STRINGVALUE]-
A list of variants. Variant is an identifier for a value (name assigned to a
value).
booleanValue- Value is a single boolean flag value for the variant.
description- A description of the variant. Max length: 500 bytes.
doubleValue- Value is a single double flag value for the variant.
id- Id of the variant. Max length: 128 bytes.
integerValue- Value is a single integer flag value for the variant.
stringValue- Value is a single string flag value for the variant. Max length: 500 bytes.
Shorthand Example:--variants=booleanValue=boolean,description=string,doubleValue=float,id=string,integerValue=int,stringValue=string --variants=booleanValue=boolean,description=string,doubleValue=float,id=string,integerValue=int,stringValue=string
JSON Example:--variants='[{"booleanValue": boolean, "description": "string", "doubleValue": float, "id": "string", "integerValue": int, "stringValue": "string"}]'
File Example:--variants=path_to_file.(yaml|json)
- 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. - API REFERENCE
-
This command uses the
saasservicemgmt/v1beta1API. The full documentation for this API can be found at: https://cloud.google.com/saas-runtime/docs - NOTES
- This command is currently in beta and might change without notice.
gcloud beta app-lifecycle-manager flags create
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 2026-04-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-07 UTC."],[],[]]