drush config-pullfor drush 8x


Export and transfer config from one environment to another.

drush config-pull

  • Aliases


    config-pull has 1 alias/es:


    drush cpull

  • Arguments


    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.

  • Options


    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".

  • 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

  • Comments


    comments powered by Disqus