Manage configuration with command-line tools

Keyboard Shortcuts

In this tutorial, we go into the details of how to import and export configuration data from one instance of your site to another using Drush and Git. By the end of this lesson, you'll be equipped to use Drush and Git to manage your site's configuration.

- [Instructor] In this lesson,…we're going to use the Drush command line utility for Drupal…to list our site configuration,…we'll then take a look at commands…for changing our site configuration with Drush,…then we're going to export our site configuration,…We'll also import site configuration,…and then lastly,…we'll talk about managing all of these changes with Git.…So I'm at drushcommands.com.…That provides documentation for Drush,…and I'm going to select the Drush 7.x commands…from the drop down at the top,…which is the current documentation for Drush.…

On the left hand side,…if you click on the Config menu entry,…you can see the six commands that Drush provides…for dealing with configuration.…Config-edit, config-export, config-get,…config-import, config-list, and config-set.…Let's start with config-list,…which lists config names by prefix.…An alias is drush cli.…So if I run drush cli in the terminal,…you'll see that it returns…all of my configuration items by prefix,…and indeed, these would be the way they'd be exported…

Resume Transcript Auto-Scroll

Author

Released

11/29/2016

With Drupal 8 comes a unified way of storing your site's configuration. Drupal's configuration system allows for an efficient development workflow when leveraging tools like Drush and Git. And it's not limited to developers. The Drupal UI also provides easy-to-use tools for administrators who need to manage their site's configuration.

In this series of tutorials you'll learn all about the new configuration system in Drupal. Explore key concepts in configuration management and important skills, such as moving configuration from a local development environment to production and using the configuration system in a module. Find out how to use command-line tools such as Drupal Console, Drush, and Git, as well as GUI tools as an alternative for tasks like cloning a site and importing and exporting site configuration.

Developers can use the demo module provided with the exercise files, Transcode Profile, to explore default configuration, custom configuration entities, administrative forms, and working with configuration entity data in a form. By the end of the course, you'll understand how you can manage configuration between instances of your site and leverage the Drupal configuration system in a module.