HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_beta_app_gen-config.1
.TH "GCLOUD_BETA_APP_GEN\-CONFIG" 1



.SH "NAME"
.HP
gcloud beta app gen\-config \- generate missing configuration files for a source directory



.SH "SYNOPSIS"
.HP
\f5gcloud beta app gen\-config\fR [\fISOURCE_DIR\fR] [\fB\-\-config\fR=\fICONFIG\fR] [\fB\-\-custom\fR] [\fB\-\-runtime\fR=\fIRUNTIME\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR \fB(DEPRECATED)\fR This command is deprecated and will soon be
removed.

As an alternative, create an app.yaml file yourself using the directions at
https://cloud.google.com/appengine/docs/flexible/reference/app\-yaml (App Engine
flexible environment) or
https://cloud.google.com/appengine/docs/standard/reference/app\-yaml (App Engine
standard environment) under the tab for your language.

To create a custom runtime, please follow the instructions at
https://cloud.google.com/appengine/docs/flexible/custom\-runtimes/


This command generates all relevant config files (app.yaml, Dockerfile and a
build Dockerfile) for your application in the current directory or emits an
error message if the source directory contents are not recognized.



.SH "EXAMPLES"

To generate configs for the current directory:

.RS 2m
$ gcloud beta app gen\-config
.RE

To generate configs for ~/my_app:

.RS 2m
$ gcloud beta app gen\-config ~/my_app
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
[\fISOURCE_DIR\fR]

The source directory to fingerprint.


.RE
.sp

.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-config\fR=\fICONFIG\fR

The yaml file defining the service configuration. This is normally one of the
generated files, but when generating a custom runtime there can be an app.yaml
containing parameters.

.TP 2m
\fB\-\-custom\fR

If true, generate config files for a custom runtime. This will produce a
Dockerfile, a .dockerignore file and an app.yaml (possibly other files as well,
depending on the runtime).

.TP 2m
\fB\-\-runtime\fR=\fIRUNTIME\fR

Generate config files for a given runtime. Can be used in conjunction with
\-\-custom. Allowed runtimes are: contrib\-dart, dart, go, php, php55, php72,
python, python27, python\-compat, java, java7, java8, nodejs, ruby, go111,
go112.


.RE
.sp

.SH "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 \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in beta and might change without notice.