Export the configuration
In Magento 2.2 and later pipeline deployment model, you can maintain a consistent configuration across systems. After you configure settings in the Magento Admin on your development system, export those settings to configuration files using the following command:
As a result of the command execution, the following configuration files are updated:
This is the shared configuration file for all your Magento instances. Include this in your source control so it can be shared between the development, build, and production systems.
See: config.php reference
This is the environment-specific configuration file. It contains sensitive and system-specific settings for individual environments.
Do not include this file in source control.
See: env.php reference
Sensitive or system-specific settings
To set the sensitive settings written to
env.php, use the
magento config:sensitive:set command.