Using Drush export content type, and views
6th Jul 2009
Steven Jones
Senior Developer
Hey, you seem to look at this article a lot! Why not Bookmark this article so you can find it easily in the future?
We're not sure what to do with these: we've written two simple Drush scripts for exporting content types and views. Saving us from having to navigate a few pages and precious seconds.
Download them and pop them somewhere Drush can find them, a good candidate would be in ~/.drush
Then you can run them by typing:
drush export view <view_name>
or
drush export content type <type_name>
You should now either have an error message or and exported view or content type in a file. The files are saved in the current working directory (in most cases where you ran drush from) so you can export views and content types right into your custom modules' include directories.