Last updated July 3, 2014. Created by nubeli on July 3, 2014.
Log in to edit this page.
Command (shortcut in parentheses) |
Description |
Examples and Options |
---|
config-get-identifiers (cgi) |
Return the list of identifiers for a given component. |
Arguments:
The name of the component to get the identifiers.
Example:
drush cgi content_type Returns the list of all available content types to export
|
config-get-components (cgc) |
Return the list of configurations components that can be exported. |
Example:
drush config-get-components
|
config-get-tracked (cgt) |
Return the list of configurations components that are tracked. |
Example:
drush config-get-tracked
|
config-get-non-tracked (cgnt) |
Return the list of configurations components that are not tracked. |
Example:
drush config-get-non-tracked
|
config-export (cexp) |
Export a configuration to the datastore. |
Examples:
drush config-export --all Export all tracked components.
drush cexp content_type.article Export the content type article and all its dependencies to the datastore
drush cexp content_type.article --exclude-dependencies --exclude-optionals Export the only the content type article to the datastore without include its dependencies and optional configurations.
Options:
--all Export all tracked components
--exclude-dependencies Export a configuration without export its dependencies.
--exclude-optionals Export a configuration without export its optional configurations.
--start-tracking Export a configuration and automatically start to tracking it.
|
config-start-tracking (csta) |
Start tracking configuration changes. |
Examples:
drush csta --all Start tracking changes in all configurations
drush csta content_type.article Start tracking changes in the content type article and in all its dependencies
Options:
--all Start tracking all components
--exclude-dependencies Export a configuration without export its dependencies.
--exclude-optionals Export a configuration without export its optional configurations.',
|
config-stop-tracking (csto) |
Stop tracking configuration changes. |
Examples:
drush csto --all Stop tracking changes in all identifiers
drush csto content_type.article Stop tracking changes in the content type article and in all its dependencies
Options:
--all Stop tracking all components
--exclude-dependencies Export a configuration without export its dependencies.
--exclude-optionals Export a configuration without export its optional configurations.',
|
config-list (clist) |
Return the list of components and identifiers. |
Examples:
drush clist Return the list of components and identifiers',
|
config-sync (csyn) |
Synchronize configurations. |
Examples:
drush config-sync Enable all the required modules and the configurations defined in tracked.inc
drush config-sync --preserve-tracked Will keep tracking the previous configurations even if they are not listed in the tracked.inc
drush csyn --source=%site/myconfig Synchronize configurations from drupal/sites/example.com/myconfig/tracked.inc
drush csyn --source=myconfig Synchronize configurations from drupal/myconfig/tracked.inc
drush csyn --source=/path/to/myconfig Synchronize configurations from /path/to/myconfig/tracked.inc
Options:
--source Import all the configurations from a given directory.
--preserve-tracked By default, all configurations that are not listed on the tracked.inc file are automatically untracked. Using this options avoid remove the already being tracked configurations.',
|
Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.