drush config-export

Export configuration to a directory.

Drush Command

drush config-export

Arguments

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

Aliases

drush cex

Options

--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 : [object Object]
--branch : [object Object]
--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