How do I import Drupal configuration?

Run drush cim from your project root. This reads configuration YAML files from the sync directory and imports them into the database, making them the active configuration.

Before importing, Drupal shows a summary of what will change. In scripts and deployment workflows, add the yes flag to skip the confirmation prompt.

Importing configuration is a core part of any Drupal deployment. Pull the latest code, run composer install to get any new dependencies, import configuration with drush cim, run database updates with drush updb, and clear caches with drush cr. This sequence ensures every environment ends up in the same state. If import fails because of dependency issues or missing modules, the error messages usually point directly at the problem. Read them carefully and resolve one issue at a time.

Facebook
Twitter
LinkedIn
Pinterest