Using Drush to manage configuration
Drush allows us to perform a multitude of tasks using the command line to interact with Drupal. A handful of commands that allow us to manage configuration include drush config-list
, drush config-get
, and drush config-set
. Let's look at how we would use each of these to manage Basic site settings
.
Listing configuration variables
If we open a Terminal window and navigate to our Drupal instance, we can enter the following command to see a list of variables:
drush config-list

Retrieving specific variables
We can also retrieve the value of a specific variable, returned by calling drush config-get
, followed by the variable name. Since some variables have multiple named values that can be set, this command is helpful for knowing what we can modify within our settings.php
file.
If we open a Terminal window, we can enter the following command to see the values contained within a variable:
drush config-get system.site

One thing to point out is that the site name value...