Exporting and Importing Configuration¶
Use config:export and config:import to move configuration between the database and files. Drupal core ships both commands from 12.1; on earlier versions Drush provides them.
Simple - value changes¶
Per-environment value changes do not require exporting and importing configuration. Use Drupal's configuration override system instead.
The configuration override system allows you to change configuration values for a given instance of a site (e.g. the development server) by setting configuration variables in the site's settings.php file. For example, to change the name of a local development site:
$config['system.site']['name'] = 'Local Install of Awesome Widgets, Inc.';
Advanced - variation by environment¶
- Drupal supports excluding development modules from enabling on higher environments.
- See Config Split module for more advanced needs.