Skip to content

Instantly share code, notes, and snippets.

@crittermike
Created September 15, 2016 13:20
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save crittermike/7d1dd6ed352cab385c7fc135465bc656 to your computer and use it in GitHub Desktop.
Save crittermike/7d1dd6ed352cab385c7fc135465bc656 to your computer and use it in GitHub Desktop.
Revert configuration in Drupal 8 with Drush (without using Features)
drush cim -y --partial --source=modules/path/to/module/config/install/
@crittermike
Copy link
Author

crittermike commented Sep 15, 2016

Note that the drush cim --partial command is very specific to Drush. It is not using any core CMI api to do this; it’s essentially just pulling the files in the directory and pushing them into the active config storage via the Storage API. Features Revert in D8 uses the ConfigRevert service that is part of the config_update module which is possibly a cleaner solution that could make it into core eventually.

- @mpotter (Features maintainer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment