- NAME
-
- gcloud alpha app migrate-to-run - migrate a second-generation App Engine app to Cloud Run
- SYNOPSIS
-
-
gcloud alpha app migrate-to-run[--appyaml=APPYAML] [--destination-repository=DESTINATION_REPOSITORY] [--entrypoint=ENTRYPOINT] [--from-image] [--from-source] [--service=SERVICE] [--version=VERSION] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Migrates the second-generation App Engine app to Cloud Run. - EXAMPLES
-
To migrate an App Engine app to Cloud Run:
through app.yaml
gcloud app migrate-to-run --appyaml=path/to/app.yaml --entrypoint=main
OR
through service and version
gcloud app migrate-to-run --service=default --version=v1 --entrypoint=main
- FLAGS
-
--appyaml=APPYAML- YAML file for the second generation App Engine version to be migrated.
--destination-repository=DESTINATION_REPOSITORY- The full resource name of the AR repository to export to in the format of projects/*/locations/*/repositories/*.
--entrypoint=ENTRYPOINT- entrypoint required for some runtimes
--from-image- Use image based migration.
--from-source- Use source based migration.
--service=SERVICE- service name that is deployed in App Engine
--version=VERSION- version name that is deployed in App Engine
- 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 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. This variant is also available:
gcloud beta app migrate-to-run
gcloud alpha app migrate-to-run
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-03-31 UTC.