Java 8 has reached end of support and will be deprecated on January 31, 2026. After deprecation, you won't be able to deploy Java 8 applications, even if your organization previously used an organization policy to re-enable deployments of legacy runtimes. Your existing Java 8 applications will continue to run and receive traffic after their deprecation date. We recommend that you migrate to the latest supported version of Java.

Migrating from AppCfg to gcloud Command Line

AppCfg was a utility command that was included in the App Engine SDK.

To help you replace your use of AppCfg commands with gcloud commands from the gcloud CLI, see the following table:

appcfg command gcloud command line
download_app No longer supported. Use gcloud app versions describe and curl for each of the files listed.
request_logs gcloud app logs read or view and route logs with the Logs Explorer
rollback No longer supported or necessary
start_module_version gcloud app versions start
stop_module_version gcloud app versions stop
update For Python and PHP apps:
gcloud app deploy

For Java 8 apps, build the app first. Then deploy with:
gcloud app deploy WEB-INF/appengine.xml

For Java 11 apps, you can deploy the source code to the Java 11 runtime without building locally:
gcloud app deploy pom.xml

To deploy a Java fatjar to the Java 11 runtime:
gcloud app deploy myapp.jar

You can also use the gcloud CLI-based Maven or Gradle plugins to build and deploy Java 8 and Java 11 apps.

update_indexes gcloud app deploy indexes.yaml
or
gcloud datastore indexes create
update_cron gcloud app deploy cron.yaml
update_dispatch gcloud app deploy dispatch.yaml
update_dos gcloud app deploy dos.yaml
update_queues gcloud app deploy queues.yaml
vacuum_indexes gcloud datastore indexes cleanup
version gcloud app versions describe
set_default_version gcloud app services set-traffic
cron_info View the Google Cloud console Cron jobs page.
resource_limits_info View the Google Cloud console Quotas page.
backends commands No longer supported. The Backends service is shut down.
list_versions gcloud app versions list
delete_version gcloud app versions delete
migrate_traffic
Only supports 100% migration.
gcloud app services set-traffic

If you need help translating the XML files to equivalent YAML files, you can use:

gcloud beta app migrate-config cron-xml-to-yaml MY-CRON-XML-FILE.xml
gcloud beta app migrate-config datastore-indexes-xml-to-yaml MY-INDEX-XML-FILE.xml
gcloud beta app migrate-config dispatch-xml-to-yaml MY-DISPATCH-XML-FILE.xml gcloud beta app migrate-config queue-xml-to-yaml MY-QUEUE-XML-FILE.xml

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 2025年12月09日 UTC.