Transferring Drupal Configurations Using Drush for Consistency Across Sites
Luciano Cossich Sales shares a practical technique for reusing configuration across Drupal sites using Drush. His approach involves exporting desired config items with drush cex
, relocating them to a subdirectory on the target site, and importing with drush config:import --partial
. This method can save time when replicating features or settings between environments.
However, the original post—published informally on LinkedIn—lacks detail on potential risks, such as config mismatches or dependency conflicts. Manual steps, like adjusting theme settings or block placements post-import, are acknowledged but not deeply explored.
While useful for experienced site builders, this approach benefits from caution and might not replace more robust config management tools like Config Split or Config Ignore. The technique is best suited for one-off migrations or controlled environments, not complex deployment pipelines.