The Drush Config Export Entity package provides some helper drush commands to export specific config entity (bundle) with all connected configuration like fields, displays etc.
Tho fully rewritten and built upon this package is inspired by (sadly) long gone drupal console's config:export:entity command.
There are two commands provided, one is for exporting bundleable entities and other one for non bundleable.
drush ceeb node page --path="../config/partial/feature-312" # Export all configuration connected with bundle to custom path
drush ceeb taxonomy_term category --module=custom_commerce_extender # Export all configuration connected with bundle to module
drush ceeb # Start config entity export prompt
drush ceenb user --path="../config/partial/feature-312" # Export all configuration connected with entity to custom path
drush ceenb user --module=custom_commerce_extender # Export all configuration connected with entity to module
drush ceenb # Start config entity export prompt
The primary use case for this package is:
- Branching
- Custom module development
- Recipes development
At least drush 12.5 is required.
Just require package with composer, this package is meant for development
composer require holo96/drush_config_export_entity --dev
This package will not handle import, you can use drush cim --partial
,
features and other importing tools.
Current maintainers for Drupal 10 and 11:
- Davor Horvacki (Holo96) - https://www.drupal.org/u/Holo96