drush config-exportfor drush 8x


Export configuration to a directory.

drush config-export

  • Aliases


    config-export has 1 alias/es:


    drush cex

  • Arguments


    config-export accepts 1 argument/s:


    label : A config directory label (i.e. a key in $config_directories array in settings.php). Defaults to 'sync'

  • Options


    config-export accepts 8 option/s:


    --add : Run `git add -p` after exporting. This lets you choose which config changes to sync for commit.

    --commit : Run `git add -A` and `git commit` after exporting.  This commits everything that was exported without prompting.

    --message : Commit comment for the exported configuration.  Optional; may only be used with --commit or --push.

    --push : Run `git push` after committing.  Implies --commit.

    --remote : The remote git branch to use to push changes.  Defaults to "origin".

    --branch : Make commit on provided working branch. Ignored if used without --commit or --push.

    --destination : An arbitrary directory that should receive the exported files. An alternative to label argument.

    --skip-modules : A list of modules to ignore during export (e.g. to avoid listing dev-only modules in exported configuration).

  • Examples


    Export configuration; do not include the devel module in the exported configuration, regardless of whether or not it is enabled in the site.

    drush config-export --skip-modules=devel

    Export configuration; Save files in a backup directory named config-export.

    drush config-export --destination

  • Comments


    comments powered by Disqus