Skip to content

Drush Configuration

Drush users may provide configuration via:

  1. yml files that are placed in specific directories. See our example file for more information. You may also add configuration to a site alias - see example site alias.
  2. Properly named environment variables are automatically used as configuration. To populate the options.uri config item, create an environment variable like so DRUSH_OPTIONS_URI= As you can see, variable names should be uppercased, prefixed with DRUSH_, and periods replaced with dashes.

If you are authoring a commandfile and wish to access the user's configuration, see Command Authoring.

The Drush configuration system has been factored out of Drush and shared with the world at Feel free to use it for your projects. Lots more usage information is there.