Skip to content

Instantly share code, notes, and snippets.

@scodx
Created May 15, 2019 17:43
Show Gist options
  • Select an option

  • Save scodx/848570f42434111cf0e4e04baa33530e to your computer and use it in GitHub Desktop.

Select an option

Save scodx/848570f42434111cf0e4e04baa33530e to your computer and use it in GitHub Desktop.
Managing features in Drupal 7 & Drush

Add component to a feature

List components to locate the one you want to add, it will also list the components already tied to a feature, pass --exported to list only these.

drush fc

Next, drush fe feature_name variable:foo_var views_view:foo_view. You can pass as many as you like

will update, or create, a module named foo_feature. The output from drush fc can be used to populate the required component:name syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment