- 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] [--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
OR
through service and version
gcloud app migrate-to-run --service=default --version=v1
- FLAGS
-
--appyaml=APPYAML- Path to the app.yaml file for the second generation App Engine version to be migrated. If not provided, the app.yaml present in the current directory is used.
--destination-repository=DESTINATION_REPOSITORY- The full resource name of the AR repository to export to in the format of projects/*/locations/*/repositories/*.
--from-image- Use image based migration.
--from-source- Use source based migration.
--service=SERVICE- Name of the service that is deployed in App Engine. If specified, the configuration of the existing service will be used and app.yaml in the current directory will be ignored.
--version=VERSION- Name of the version that is deployed in App Engine. If specified, the configuration of the existing version will be used and app.yaml in the current directory will be ignored.
- 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-05-05 UTC.