19.03.2026 | Michael Ebert

Preview changed config before import/export with drush

First, you could check if there are different states of your config between database and local file system.

drush_config_status.sh
drush config:status

There is an option `--diff` for the drush command that will print the changes first.

drush_config_import_diff.sh
drush config:import --diff

This also works for config export.

drush_config_export_diff.sh
drush config:export --diff

Issue:

You changed config and want to see the changes before it is exported to your config sync directory or you want to see what will be changed if you import changed config.

Solution:

There is an option for the drush commands that will print the changes first.