drush config-pullfor drush 8x
Export and transfer config from one environment to another.
config-pull has 1 alias/es:
config-pull accepts 2 argument/s:
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.
config-pull accepts 3 option/s:
--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".
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
comments powered by Disqus