Skip to main content

Devbit

Preview changed config before import/export with drush

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.

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

drush config:status

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

drush config:import --diff

This also works for config export.

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.

Michael Ebert

Michael Ebert

Backend Developer / DevOps

Ihre Drupal-Website zukunftssicher machen

Wir prüfen Ihr System und zeigen, was Sie für AI, Wartung und Upgrades brauchen.