- Issue created by @falsovsky
When copying the database between environments (e.g. from production to staging or local development), the domain hostnames often need to be updated to match the new environment.
Since we do (they are ignored in config_ignore
), this must be done directly in the database.
Currently, there is no convenient way to batch replace hostnames for all domain entities via Drush.
Introduce a new Drush command:
drush domain:replace <find> <replace> [--force]
This command will:
drush domain:replace ".example.com" ".local.example.test" --force
This helps quickly adapt hostnames after database copies, without relying on config import/export, and avoids manual edits.
Active
2.0
Code