drush config-importfor drush 8x

Import config from a config directory.

drush config-import

  • Aliases

    config-import has 1 alias/es:

    drush cim

  • Arguments

    config-import 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-import accepts 4 option/s:

    --preview : Format for displaying proposed changes. Recognized values: list, diff. Defaults to list.

    --source : An arbitrary directory that holds the configuration files. An alternative to label argument

    --partial : Allows for partial config imports from the source directory. Only updates and new configs will be processed with this flag (missing configs will not be deleted).

    --skip-modules : A list of modules to ignore during import (e.g. to avoid disabling dev-only modules that are not enabled in the imported configuration).

  • Examples

    Import configuration; do not enable or disable the devel module, regardless of whether or not it appears in the imported list of enabled modules.

    drush config-import --skip-modules=devel

  • Comments

    comments powered by Disqus