| name | gcloud-app |
| description | App Engine via gcloud (`gcloud app`). Manage your App Engine deployments — domain-mappings, firewall-rules, instances, logs, operations, regions, runtimes, services. |
gcloud app — App Engine
Overview
App Engine is Google Cloud's fully managed, serverless platform for building and hosting web applications and APIs at scale. The gcloud app command group creates the per-project App Engine application, deploys code/configuration from app.yaml (and related config files), and manages services, versions, traffic splits, instances, domains, SSL certificates, and firewall rules. Reach for it when you want to deploy a web app without managing servers — App Engine supports both the Standard environment (language-specific runtimes that scale to zero) and the Flexible environment (Docker-based, running on Compute Engine VMs).
Quick reference — common workflows
1. Create the App Engine app and deploy for the first time
gcloud services enable appengine.googleapis.com
gcloud app regions list
gcloud app create --region=us-central
gcloud app deploy
gcloud app browse
2. Deploy a new version without sending it traffic
gcloud app deploy app.yaml --no-promote --version=v2
gcloud app versions list --service=default
gcloud app versions migrate v2 --service=default
3. Canary / traffic split between two versions
gcloud app services set-traffic default \
--splits=v1=9,v2=1 \
--split-by=cookie
gcloud app services describe default
gcloud app services set-traffic default --splits=v2=1
4. List, stop, and delete old versions
gcloud app versions list
gcloud app versions list --hide-no-traffic
gcloud app versions stop v1 --service=default
gcloud app versions delete v1 --service=default
5. Read and tail logs
gcloud app logs read
gcloud app logs read --service=default --version=v2 --level=warning
gcloud app logs tail
gcloud app logs tail --service=default --logs=request_log
6. Debug a Flexible-environment instance over SSH
gcloud app instances list --service=default --version=v2
gcloud app instances enable-debug --service=default --version=v2 i1
gcloud app instances ssh i1 --service=default --version=v2
gcloud app instances ssh i1 --service=default --version=v2 --container=gaeapp
gcloud app instances disable-debug --service=default --version=v2 i1
Command groups
| Group | Reference file | Commands | Description |
|---|
app domain-mappings | domain-mappings.md | 5 | view and manage your App Engine domain mappings |
app firewall-rules | firewall-rules.md | 6 | view and manage your App Engine firewall rules |
app instances | instances.md | 7 | view and manage your App Engine instances |
app logs | logs.md | 2 | manage your App Engine logs |
app operations | operations.md | 3 | view and manage your App Engine operations |
app regions | regions.md | 1 | view regional availability of App Engine runtime environments |
app runtimes | runtimes.md | 1 | list runtimes available to Google App Engine |
app services | services.md | 6 | view and manage your App Engine services |
app ssl-certificates | ssl-certificates.md | 5 | view and manage your App Engine SSL certificates |
app versions | versions.md | 7 | view and manage your App Engine versions |
Top-level commands (browse, create, deploy, describe, open-console, update) are in _commands.md. A one-line index of all 49 GA commands is in index.md.
Common flags & tips
beta / alpha
gcloud beta app migrate-to-run — beta-exclusive command group to migrate second-generation App Engine apps to Cloud Run.
gcloud beta app gen-config — deprecated beta command that generates missing config files for a local source directory.
gcloud alpha app exists for experimental features. The core GA commands above (deploy, services set-traffic, versions migrate, etc.) need no beta/alpha flags for standard workflows.
Official documentation
- App Engine product docs home — https://cloud.google.com/appengine/docs — serverless web-app hosting platform overview (Standard and Flexible environments).
- gcloud
app CLI reference — https://cloud.google.com/sdk/gcloud/reference/app — all 49 GA commands.
- Python 3 quickstart — https://cloud.google.com/appengine/docs/standard/python3/quickstart — create, deploy, and add persistence to a Flask app on Standard.
- Configuration files — https://cloud.google.com/appengine/docs/standard/configuration-files —
app.yaml, cron.yaml, dispatch.yaml, index.yaml.
- Splitting traffic — https://cloud.google.com/appengine/docs/standard/splitting-traffic — IP, cookie, and random splitting for canary/blue-green deploys.
- IAM roles for App Engine — https://cloud.google.com/appengine/docs/standard/roles — admin, deployer, service admin, and viewer roles.
- gcloud
beta app reference — https://cloud.google.com/sdk/gcloud/reference/beta/app — beta surface including migrate-to-run.