Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

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.

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 Release date
1.0.0 Stable May 21, 2024
1.0.0-beta1 Pre-release Jun 28, 2023