gcloud alpha design-center spaces applications generate Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha design-center spaces applications generate - generate IaC for an application
- SYNOPSIS
gcloud alpha design-center spaces applications generate(APPLICATION:--space=SPACE)[--gcs-uri=GCS_URI][--iac-format=IAC_FORMAT][--location=LOCATION][--artifact-location-gcs-uri=ARTIFACT_LOCATION_GCS_URI| [--developer-connect-export-config-dir=DEVELOPER_CONNECT_EXPORT_CONFIG_DIR(--developer-connect-export-config-repo-uri=DEVELOPER_CONNECT_EXPORT_CONFIG_REPO_URI:--connection=CONNECTION) :--developer-connect-export-config-branch=DEVELOPER_CONNECT_EXPORT_CONFIG_BRANCH]][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Generates Terraform files for an application in a space.- EXAMPLES
- To generate IaC for the application
my-applicationin spacemy-space, projectmy-projectand locationus-central1, run:gcloudalphadesign-centerspacesapplicationsgeneratemy-application--space=my-space--project=my-project--location=us-central1Or run:
gcloudalphadesign-centerspacesapplicationsgenerateprojects/my-project/locations/us-central1/spaces/my-space/applications/my-applicationTo generate IaC for the application
my-applicationin spacemy-space, projectmy-projectand locationus-central1and save to Cloud Storage bucketmy-bucket, run:gcloudalphadesign-centerspacesapplicationsgeneratemy-application--space=my-space--project=my-project--location=us-central1--gcs-uri=gs://my-bucketTo generate IaC for the application
my-applicationin Terraformformat in spacemy-space, projectmy-projectandlocationus-central1, run:gcloudalphadesign-centerspacesapplicationsgeneratemy-application--space=my-space--project=my-project--location=us-central1--iac-format=terraform - POSITIONAL ARGUMENTS
- Application resource - The name of the application. The arguments in this groupcan be used to specify the attributes of this resource. (NOTE) Some attributesare not given arguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
applicationon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
To set the
locationattribute:- provide the argument
applicationon the command line with a fullyspecified name; - provide the argument
--locationon the command line.
This must be specified.
APPLICATION- ID of the application or fully qualified identifier for the application.
To set the
applicationattribute:- provide the argument
applicationon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--space=SPACE- The space id of the application resource.
To set the
spaceattribute:- provide the argument
applicationon the command line with a fullyspecified name; - provide the argument
--spaceon the command line.
- provide the argument
- provide the argument
- Application resource - The name of the application. The arguments in this groupcan be used to specify the attributes of this resource. (NOTE) Some attributesare not given arguments in this group but can be set in other ways.
- FLAGS
--gcs-uri=GCS_URI- The Cloud Storage URI to write the generated IaC to.
DEPRECATED: Use the 'artifact_location' field instead.
--iac-format=IAC_FORMAT- The IaC format to generate.
IAC_FORMATmust be one of:helm- IaC format is HELM.
terraform- IaC format is Terraform.
--location=LOCATION- For resources [application, developer-connect-export-config-repo-uri], providesfallback value for resource location attribute. When the resource's full URIpath is not provided, location will fallback to this flag value.
- Arguments for the location.
At most one of these can be specified:
--artifact-location-gcs-uri=ARTIFACT_LOCATION_GCS_URI- The Cloud Storage URI for storing the generated IaC.
- Through Developer Connect, defines a location where content such asInfrastructure as Code (IaC) is stored.
--developer-connect-export-config-dir=DEVELOPER_CONNECT_EXPORT_CONFIG_DIR- Directory, relative to the source repo, where content such as Infrastructure asCode (IaC) will be stored. This must be a relative path.To specify the rootdirectory, use '/'. If the path or any subdirectories do not exist, they will becreated.
This flag argument must be specified if any of the other arguments in this groupare specified.
--developer-connect-export-config-branch=DEVELOPER_CONNECT_EXPORT_CONFIG_BRANCH- The branch in repo to which the content such as Infrastructure as Code (IaC)should be written to. If empty, ADC will create a branch and push the changes.
- GitRepositoryLink resource - The Developer Connect Git repository link,formatted as
projects/*/locations/*/connections/*/gitRepositoryLinks/*. Thearguments in this group can be used to specify the attributes of this resource.(NOTE) Some attributes are not given arguments in this group but can be set inother ways.To set the
projectattribute:- provide the argument
--developer-connect-export-config-repo-urionthe 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
--developer-connect-export-config-repo-urionthe command line with a fully specified name; - provide the argument
--locationon the command line.
This must be specified.
--developer-connect-export-config-repo-uri=DEVELOPER_CONNECT_EXPORT_CONFIG_REPO_URI- ID of the gitRepositoryLink or fully qualified identifier for thegitRepositoryLink.
To set the
git-repository-linkattribute:- provide the argument
--developer-connect-export-config-repo-urionthe command line.
This flag argument must be specified if any of the other arguments in this groupare specified.
- provide the argument
--connection=CONNECTION- The connection id of the gitRepositoryLink resource.
To set the
connectionattribute:- provide the argument
--developer-connect-export-config-repo-urionthe command line with a fully specified name; - provide the argument
--connectionon the command line.
- provide the argument
- provide the argument
- 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
designcenter/v1alphaAPI. The fulldocumentation for this API can be found at:http://cloud.google.com/application-design-center/docs - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gclouddesign-centerspacesapplicationsgenerate
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-11-18 UTC.