config-pull

Export and transfer config from one environment to another.

drush config-pull

Aliases:

Arguments:

source : A site-alias or the name of a subdirectory within /sites whose config you want to copy from.
target : A site-alias or the name of a subdirectory within /sites whose config you want to replace.

Options:

--safe : Validate that there are no git uncommitted changes before proceeding
--label : A config directory label (i.e. a key in $config_directories array in settings.php). Defaults to 'sync'
--runner : Where to run the rsync command; defaults to the local site. Can also be "source" or "destination".

Examples:

Export config from @prod and transfer to @stage.

drush config-pull @prod @stage

Export config from @prod and transfer to the 'vcs' config directory of current site.

drush config-pull @prod @self --label=vcs