Last updated August 23, 2014. Created on November 3, 2010.
Edited by glass.dimly, nimbfire, gaele, Willynux. Log in to edit this page.

Features offers some useful drush commands which can help streamline your development even further. (Drush is a command line shell and scripting interface for Drupal.)

The drush commands Features offers are:

explanation: List all the available features for your site.
aliases: fl, features
example: drush features

explanation: List features components.
aliases: fc
example 1: drush features-components List feature components matching patterns. The listing may be limited to
exported/not-exported components.
example 2: drush features-components --exported Show only components that have been exported.

explanation: Export a feature from your site into a module. If the feature exists, new components are added into that feature.
aliases: fe
Syntax: drush features-export name_of_feature component1 [component2...]
Example: drush fe my_new_blog_feature views_view:view_name

To get a list of components, use the above features-components command.

explanation: Update a feature module on your site. From database to the code.
aliases: fu
example: drush features-update NAME_OF_FEATURE_TO_EXPORT

explanation: Update all feature modules on your site. From database to the code.
aliases: fu-all, fua
example: drush features-update-all

explanation: Revert a feature module on your site. From code to the database.
aliases: fr
example: drush features-revert NAME_OF_FEATURE_TO_REVERT

explanation: Revert all enabled feature module on your site. From code to the database.
aliases: fr-all, fra
example: drush features-revert-all

explanation: Show a diff of a feature module.
aliases: fd
example: drush features-diff NAME_OF_FEATURE_TO_EXPORT

Information taken from in Features module bundle.

You can also use -y to respond automatically Yes to confirmation dialogs e.g.
drush fra -y

explanation: While not a command specifically provided by the features module, this command enables a feature.
example: drush en my_feature

Looking for support? Visit the forums, or join #drupal-support in IRC.


josejayesh’s picture

Guys ,
After updating my feature which drush command I can use for downloading .(basically added additional fields into a content type). I know form feature UI interface can download it , but which is drush equivalent for that .

drush fu

drush features-export

Please help me to understand the difference .Thanks in Advance


bpleduc’s picture

To create a new feature use:

drush features-export

To update an existing feature use:

drush features-update

Hope this helps!


josejayesh’s picture

Thanks ben