Drupal 8 Configuration management

Export configuration:

drush cex
 
Import configuration:
drush cim
 
IMPORTANT!
 
When working on project with other developers ALWAYS do following:

git pull
drush cim
drush cr
{...DO YOUR WORK...}
drush cex
git push (if there where commits in meantime you will have to do git pull)
 
Not following this order might delete your own or your colleagues work! Try to keep {...DO YOUR WORK...} as short as possible, having it in this state for couple of days might bring you conflict when trying to merge.
 
 
 
 

Share this post