How and when is the app/etc/config.php file generated?

How is it generated?

It is generated from the 2 code points:

Notes

Any modules sequence changes will be applied only on the app/etc/config.php file generation.

When is it generated?

As you can see from the 2 articles above, the app/etc/config.php file is generated in the following 4 cases:

  1. On the module:enable console command.

See also: