gcloud alpha design-center spaces applications deploy Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha design-center spaces applications deploy - deploy an application
- SYNOPSIS
gcloud alpha design-center spaces applications deploy(APPLICATION:--location=LOCATION--space=SPACE)[--async][--create-sa][--replace][--service-account=SERVICE_ACCOUNT][--worker-pool=WORKER_POOL][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Deploy an application in a space.- EXAMPLES
- To deploy the application my-application in space my-space, project my-projectand location us-central1, run:
gcloudalphadesign-centerspacesapplicationsdeploymy-application--space=my-space--project=my-project--location=us-central1Or run:
gcloudalphadesign-centerspacesapplicationsdeployprojects/my-project/locations/us-central1/spaces/my-space/applications/my-applicationTo deploy the application my-application in space my-space, project my-projectand location us-central1 and replace the existing deployment, run:
gcloudalphadesign-centerspacesapplicationsdeploymy-application--space=my-space--project=my-project--location=us-central1--replaceTo deploy the application my-application in space my-space, project my-projectand location us-central1 using a worker poolprojects/my-project/locations/us-central1/workerPools/my-worker-pool, run:
gcloudalphadesign-centerspacesapplicationsdeploymy-application--space=my-space--project=my-project--location=us-central1--worker-pool=projects/my-project/locations/us-central1/workerPools/my-worker-poolTo deploy the application my-application and create a new service account forthe deployment, run:
gcloudalphadesign-centerspacesapplicationsdeploymy-application--space=my-space--project=my-project--location=us-central1--create-saTo deploy the application my-application and create a new service account andcreate a specific service account for the deployment, run:
gcloudalphadesign-centerspacesapplicationsdeploymy-application--space=my-space--project=my-project--location=us-central1--create-sa--service-account=my-service-account@my-project.iam.gserviceaccount.comTo deploy the application my-application and use a specific service account forthe deployment, run:
To deploy the application my-application in space my-space, project my-projectand location us-central1 asynchronously, run:gcloudalphadesign-centerspacesapplicationsdeploymy-application--space=my-space--project=my-project--location=us-central1--service-account=projects/my-project/serviceAccounts/my-service-account@my-project.iam.gserviceaccount.comgcloudalphadesign-centerspacesapplicationsdeploymy-application--space=my-space--project=my-project--location=us-central1--async - POSITIONAL ARGUMENTS
- Application resource - The application to deploy IaC. The arguments in thisgroup can be used to specify the attributes of this resource. (NOTE) Someattributes are 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.
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
--location=LOCATION- The Cloud location for the application.
To set the
locationattribute:- provide the argument
APPLICATIONon the command line with a fullyspecified name; - provide the argument
--locationon the command line.
- provide the argument
--space=SPACE- The ID of the space.
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 application to deploy IaC. The arguments in thisgroup can be used to specify the attributes of this resource. (NOTE) Someattributes 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.
--create-sa- Create a new service account for the deployment.
--replace- Flag to update the existing deployment. If not set or false, deploy will fail ifapplication state is in the DEPLOYED state.
--service-account=SERVICE_ACCOUNT- The service account to use for this deployment.
- If provided, this service account will be used to execute the deploymentprocess, taking precedence over any service_account specified on the Applicationresource.
- The caller must have the "iam.serviceAccounts.actAs" permission on this serviceaccount.
- If this field is omitted, the system will use the "service_account" definedwithin the Application resource.
- If this field is omitted with --create-sa flag, the system will create a new andunique service_account and use it for the deployment.
- We recommend that you provide a service account here or on the Applicationresource. If you don't provide a service account, the deployment will fail.
- If the
--create-saflag is also provided, this value is the ID of anew service account to be created (e.g.,my-new-sa).
Format:
projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}(whennot using--create-sa) --worker-pool=WORKER_POOL- The user-specified Worker Pool resource in which the Cloud Build job willexecute. Format:projects/{project}/locations/{location}/workerPools/{workerPoolId} If this flagis omitted, the worker pool already defined on the application will be used. Ifno worker pool is defined on the application, the default Cloud Build workerpool is used. The worker pool must exist in the same region as the application.
- 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. - 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-centerspacesapplicationsdeploy
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 2026-01-13 UTC.