Last updated May 16, 2019

Using Drush to work with the Drupal 8 Configuration System is straightforward when working locally. Navigate to the directory containing your site, then issue whatever Drush command you need.

Things become more complicated when multiple environments become involved. Often, a configuration change will need to be made on the production ("live") site and then need to be persisted to a Git repository later. When this occurs, Drush once more provides a solution in the form of the config-pull subcommand.

Note: Drush 8 and 9 use different methods and file types for configuration files. This tutorial will demonstrate methods that are compatible with the latest version of Drush (version 9) with notes related to Drush 8.