- NAME
-
- gcloud app deploy - deploy the local code and/or configuration of your app to App Engine
- SYNOPSIS
-
-
gcloud app deploy[ DEPLOYABLES…][ --bucket=BUCKET][ --image-url=IMAGE_URL][ --no-promote][ --no-stop-previous-version][ --version=VERSION,-vVERSION][ GLOBAL-FLAG …]
-
- DESCRIPTION
-
This command is used to deploy both code and configuration to the App Engine
server. As an input it takes one or more
that should be uploaded. ADEPLOYABLEScan be a service's .yaml file or a configuration's .yaml file.DEPLOYABLEThis command supports App Engine flexible task queue files. The format of task queue files can be found at: https://cloud.google.com/appengine/docs/python/config/queueref
- POSITIONAL ARGUMENTS
-
- [
DEPLOYABLES…] -
The yaml files for the services or configurations you want to deploy. If not
given, defaults to
app.yamlin the current directory. If that is not found, attempts to automatically generate necessary configuration files (such as app.yaml) in the current directory.
- [
- FLAGS
-
--bucket=BUCKET- The Google Cloud Storage bucket used to stage files associated with the deployment. If this argument is not specified, the application's default code bucket is used.
--image-url=IMAGE_URL- Deploy with a specific Docker image. Docker url must be from one of the valid gcr hostnames.
--promote-
Promote the deployed version to receive all traffic.
True by default. To change the default behavior for your current environment, run:
$ gcloud config set app/promote_by_default false
Overrides the default
promote_by_defaultproperty value for this command invocation. Use--no-promoteto disable. --stop-previous-version-
Stop the previously running version when deploying a new version that receives
all traffic. Overrides the default
stop_previous_versionproperty value for this command invocation. Use--no-stop-previous-versionto disable. --version=VERSION,-vVERSION- The version of the app that will be created or replaced by this deployment. If you do not specify a version, one will be generated for you.
- GLOBAL FLAGS
-
Run
$ gcloud helpfor a description of flags available to all commands. - EXAMPLES
-
To deploy a single service, run:
$ gcloud app deploy ~/my_app/app.yaml
To deploy multiple services, run:
$ gcloud app deploy ~/my_app/app.yaml ~/my_app/another_service.yaml
- Cloud SDK
- Product Overview
- Documentation
- Quickstarts
- All Quickstarts
- For Linux
- For Debian and Ubuntu
- For Red Hat and CentOS
- For Mac OS X
- For Windows
- How-to Guides
- All How-to Guides
- Installing the SDK
- Setting up the SDK
- Managing SDK Components
- Scripting gcloud Commands
- APIs & Reference
- gcloud Reference
- Overview
- gcloud alpha
- Overview
- billing
- bio
- compute
- Overview
- addresses
- backend-buckets
- backend-services
- config-ssh
- connect-to-serial-port
- copy-files
- disk-types
- disks
- firewall-rules
- forwarding-rules
- groups
- health-checks
- http-health-checks
- https-health-checks
- images
- instance-groups
- Overview
- describe
- get-named-ports
- list
- list-instances
- managed
- set-named-ports
- unmanaged
- instance-templates
- instances
- machine-types
- networks
- operations
- project-info
- regions
- reset-windows-password
- rolling-updates
- routers
- routes
- scp
- snapshots
- ssh
- ssl-certificates
- target-http-proxies
- target-https-proxies
- target-instances
- target-pools
- target-ssl-proxies
- target-vpn-gateways
- url-maps
- users
- vpn-tunnels
- xpn
- Overview
- associated-projects
- disable
- enable
- get-host-project
- list-associated-resources
- organizations
- zones
- config
- container
- dataflow
- deployment-manager
- Overview
- deployments
- manifests
- operations
- resources
- runtime-configs
- types
- functions
- genomics
- Overview
- callsets
- datasets
- operations
- pipelines
- readgroupsets
- reads
- references
- referencesets
- variants
- variantsets
- init
- ml
- organizations
- projects
- pubsub
- search-help
- service-management
- service-registry
- source
- test
- gcloud app
- gcloud auth
- gcloud beta
- Overview
- app
- auth
- bigtable
- compute
- Overview
- addresses
- backend-services
- config-ssh
- connect-to-serial-port
- copy-files
- disk-types
- disks
- firewall-rules
- forwarding-rules
- groups
- health-checks
- http-health-checks
- https-health-checks
- images
- instance-groups
- Overview
- describe
- get-named-ports
- list
- list-instances
- managed
- set-named-ports
- unmanaged
- instance-templates
- instances
- machine-types
- networks
- operations
- project-info
- regions
- reset-windows-password
- routers
- routes
- scp
- snapshots
- ssh
- ssl-certificates
- target-http-proxies
- target-https-proxies
- target-instances
- target-pools
- target-ssl-proxies
- target-vpn-gateways
- url-maps
- users
- vpn-tunnels
- zones
- config
- container
- dataflow
- dataproc
- debug
- deployment-manager
- emulators
- error-reporting
- iam
- init
- kms
- Overview
- cryptokeys
- keyrings
- locations
- logging
- ml
- Overview
- init-project
- jobs
- local
- models
- operations
- predict
- versions
- organizations
- projects
- pubsub
- service-management
- source
- sql
- test
- gcloud components
- gcloud compute
- Overview
- addresses
- backend-services
- config-ssh
- connect-to-serial-port
- copy-files
- disk-types
- disks
- firewall-rules
- forwarding-rules
- health-checks
- http-health-checks
- https-health-checks
- images
- instance-groups
- Overview
- describe
- get-named-ports
- list
- list-instances
- managed
- set-named-ports
- unmanaged
- instance-templates
- instances
- machine-types
- networks
- operations
- project-info
- regions
- reset-windows-password
- routers
- routes
- snapshots
- ssh
- ssl-certificates
- target-http-proxies
- target-https-proxies
- target-instances
- target-pools
- target-ssl-proxies
- target-vpn-gateways
- url-maps
- vpn-tunnels
- zones
- gcloud config
- gcloud container
- gcloud dataflow
- gcloud dataproc
- gcloud datastore
- gcloud debug
- gcloud deployment-manager
- gcloud dns
- gcloud docker
- gcloud feedback
- gcloud help
- gcloud iam
- gcloud info
- gcloud init
- gcloud organizations
- gcloud projects
- gcloud service-management
- gcloud source
- gcloud sql
- gcloud topic
- gcloud version
- Google Cloud Client Libraries
- Concepts
- All Concepts
- SDK Overview
- gcloud Overview
- SDK Configurations
- SDK Properties
- SDK Components
- Resources
- All Resources
- Release Notes
- Usage Statistics