drupal-config-management
Installation
SKILL.md
Drupal Config Management
Configuration is Drupal's declarative system for site building. It lives in YAML files and is the bridge between development and deployment. Getting config management right is the difference between smooth deploys and broken production sites.
Config Directories
Drupal supports multiple config directories. Understanding which one to use is critical.
| Directory | Purpose | When Populated |
|---|---|---|
config/sync |
Primary sync directory for drush cim/drush cex |
drush cex writes here |
config/default |
Legacy name for sync (Drupal 8 projects) | Same as sync |
config/staging |
Alternative name used by some hosting platforms | Same as sync |
modules/custom/*/config/install |
Default config installed when module is enabled | Module install |
modules/custom/*/config/optional |
Config installed only if dependencies are met | Module install |