Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Config Duplicator

No security coverage Under active development

This module provides a Drush command to quickly duplicate multiple configuration entities that contain a specific keyword. It generates new entities with unique IDs, replacing the keyword with a new machine name you specify, which is helpful for generating similar configurations efficiently.

The Config Duplicator module provides a Drush command to duplicate multiple config entities containing a keyword to a new set of config entities. This is useful if you want to quickly generate configuration based on a set of existing config entities.

Features

  • Copy all config entities containing a keyword
  • Generate a new set of config entities with new UUIDs
  • Replace all instances of the keyword by a provided machine name in the new set of config entities

Usage

After installing the module you can use the drush command like this:

drush cdup keyword machine_name
drush cex -y

  • Replace keyword with the keyword used in the name of all config entities you want to duplicate.
  • Replace machine_name with the machine name you want to use in the new config entities. This will replace the keyword.
  • Run drush cex to export the newly generated config.
  • Double check the generated config. Because the keyword is replaced by the new machine name it may cause some unintended issues if the keyword is too broad or part of another keyword (e.g. "page" and "homepage").

It is recommended to install this module as a dev requirement.

Drupal 9–10 · not 11

Ask your assistant about Config Duplicator

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jun 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Slowing

Releases

Version Type Core PHP Release date
1.0.0 Stable 9–10 May 21, 2024
1.0.0-beta1 Pre-release 9–10 Jun 28, 2023