I am creating a new feature using drush. I looked up the component I want to create the feature with. When I run the command drush fe my_feature views_view:my_cool_view, drush wants to put it in sites/all/modules. How do I tell drush to export my feature to sites/all/modules/custom?


Use the command drush fe my_feature views_view:my_cool_view --destination=sites/all/modules/custom

https://drushcommands.com/drush-7x/features/features-export/ http://dirtystylus.com/2016/02/18/setting-a-destination-directory-for-drush-features-export/

Bonus: To change the name of the feature, and other info, edit the name= section of: sites/all/modules/custom/my_feature/my_feature.info

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.