fbpx Using Drush export content type, and views | ComputerMinds Skip to main content

Using Drush export content type, and views

An article from ComputerMinds - Building with Drupal in the UK since 2005
6th Jul 2009

Steven Jones

Senior Developer

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>


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.