- INFORMATION
-
gcloud alpha design-center spaces application-templates revisions exportis not available in universe domainuniverse. - NAME
-
- gcloud alpha design-center spaces application-templates revisions export - export IaC for an application template revision
- SYNOPSIS
-
-
gcloud alpha design-center spaces application-templates revisions export(REVISION:--application-template=APPLICATION_TEMPLATE--space=SPACE) [--async] [--export-iac-config-format=EXPORT_IAC_CONFIG_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]] [--tf-config-module-git-proxy-enabled|--tf-config-module-local-references-enabled] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Exports Terraform files for an application template revision, with options to configure module references (such as downloading modules locally). - EXAMPLES
-
To export the application template revision
my-revision(in application templatemy-template, spacemy-space, projectmy-projectand locationus-central1) to a Cloud Storage bucketgs://my-bucket, run:gcloud alpha design-center spaces application-templates revisions export my-revision --application-template=my-template --space=my-space --project=my-project --location=us-central1 --artifact-location-gcs-uri=gs://my-bucketOr run using the resource URI:
gcloud alpha design-center spaces application-templates revisions export projects/my-project/locations/us-central1/spaces/my-space/applicationTemplates/my-template/revisions/my-revision --artifact-location-gcs-uri=gs://my-bucketTo export the application template revision
my-revisionto a Developer Connect repositoryprojects/my-project/locations/us-central1/connections/my-connection/gitRepositoryLinks/my-repoin directorymy-diron branchmain, run:gcloud alpha design-center spaces application-templates revisions export my-revision --application-template=my-template --space=my-space --project=my-project --location=us-central1 --developer-connect-export-config-repo-uri=projects/my-project/locations/us-central1/connections/my-connection/gitRepositoryLinks/my-repo --developer-connect-export-config-dir=my-dir --developer-connect-export-config-branch=main - POSITIONAL ARGUMENTS
-
-
Revision resource - The name of the application template revision. The arguments
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 in other
ways.
To set the
projectattribute:-
provide the argument
revisionon 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
revisionon the command line with a fully specified name; -
provide the argument
--locationon the command line.
This must be specified.
REVISION-
ID of the revision or fully qualified identifier for the revision.
To set the
revisionattribute:-
provide the argument
revisionon the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--application-template=APPLICATION_TEMPLATE-
The applicationTemplate id of the revision resource.
To set the
application-templateattribute:-
provide the argument
revisionon the command line with a fully specified name; -
provide the argument
--application-templateon the command line.
-
provide the argument
--space=SPACE-
The space id of the revision resource.
To set the
spaceattribute:-
provide the argument
revisionon the command line with a fully specified name; -
provide the argument
--spaceon the command line.
-
provide the argument
-
provide the argument
-
Revision resource - The name of the application template revision. The arguments
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 in other
ways.
- FLAGS
-
--async- Return immediately, without waiting for the operation in progress to complete.
--export-iac-config-format=EXPORT_IAC_CONFIG_FORMAT-
IaC format of the export. Default is [IACFormat.TERRAFORM].
EXPORT_IAC_CONFIG_FORMATmust be one of:helm- IaC format is HELM.
terraform- IaC format is Terraform.
--location=LOCATION- For resources [revision, developer-connect-export-config-repo-uri], provides fallback value for resource location attribute. When the resource's full URI path 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.
-
Or at least one of these can be specified:
- Through Developer Connect, defines a location where content such as Infrastructure 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 as
Code (IaC) will be stored. This must be a relative path.To specify the root
directory, use '/'. If the path or any subdirectories do not exist, they will be
created.
This flag argument must be specified if any of the other arguments in this group are 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, Application Design Center will create a branch and push the changes.
-
GitRepositoryLink resource - The Developer Connect Git repository link,
formatted as
projects/*/locations/*/connections/*/gitRepositoryLinks/*. The arguments 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 in other ways.To set the
projectattribute:-
provide the argument
--developer-connect-export-config-repo-urion 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
--developer-connect-export-config-repo-urion the 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 the
gitRepositoryLink.
To set the
git-repository-linkattribute:-
provide the argument
--developer-connect-export-config-repo-urion the command line.
This flag argument must be specified if any of the other arguments in this group are 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-urion the command line with a fully specified name; -
provide the argument
--connectionon the command line.
-
provide the argument
-
provide the argument
- Arguments for the config payload.
- Configuration for exporting a resource as Terraform IAC.
- Configuration on how terraform module should be handled during export.
-
Arguments for the source override.
At most one of these can be specified:
--tf-config-module-git-proxy-enabled- This is typically only valid for 3P components if ingested via devconnect URI. Typically, for 1P components, since they are sourced from public git repos, this field is not applicable.
--tf-config-module-local-references-enabled- If set, all the dependent modules will be downloaded from the target repository and referenced locally.
- 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 full documentation 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 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.
gcloud alpha design-center spaces application-templates revisions export
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-08-26 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-08-26 UTC."],[],[]]