diff --git a/views_import.drush.inc b/views_import.drush.inc
new file mode 100644
index 0000000..1fd9d75
--- /dev/null
+++ b/views_import.drush.inc
@@ -0,0 +1,37 @@
+<?php
+
+include('views_import.views_default.inc');
+
+/**
+ * Callback for views_import_export_views command.
+ */
+function drush_views_import_export_views($view_name = '') {
+  $views = views_get_all_views();
+  $all = drush_get_option('all', 0);
+  if($view_name == '' and $all >= 1) {
+    foreach($views as $vname => $view) {
+      _views_import_export_view($vname, $views);
+    }
+  }
+  elseif ($view_name != '') {
+    if (array_key_exists($view_name, $views)) {
+      _views_import_export_view($view_name, $views);
+    }
+    else {
+      return drush_set_error(dt('"@view_name" is not a valid view name', array('@view_name' => $view_name)));
+    }
+  }
+  else {
+    return drush_set_error(dt('No view name given, nothing to do :('));
+  }
+}
+
+/**
+ *  Helper function to write individual views files.
+ */
+function _views_import_export_view($name, $views) {
+  $file_name = $name . '.inc';
+  $export = "<?php \n";
+  $export .= views_export_view($views[$name]);
+  file_put_contents(VIEWS_IMPORT_DIR . '/'. $file_name, $export);
+}
diff --git a/views_import.module b/views_import.module
index c71b8c8..622aac0 100644
--- a/views_import.module
+++ b/views_import.module
@@ -10,3 +10,24 @@
 function views_import_views_api() {
   return array("version" => "3.0");
 }
+
+/**
+ * Implements hook_drush_command().
+ */
+function views_import_drush_command() {
+  $items['views_import_export_views'] = array(
+    'description' => 'Export views to views_import folder.',
+    'aliases' => array('vie'),
+    'arguments' => array(
+      'view' => 'The name of a view to export',
+    ),
+    'options' => array(
+      'all' => 'Export all active views',
+    ),
+    'examples' => array(
+      'drush vie frontpage' => 'Export the frontpage view to views_import folder.',
+      'drush vie --all=1' => 'Export all views to views_import folder.',
+    ),
+  );
+  return $items;
+}
diff --git a/views_import.views_default.inc b/views_import.views_default.inc
index ba892d6..c4dc4f8 100644
--- a/views_import.views_default.inc
+++ b/views_import.views_default.inc
@@ -3,6 +3,8 @@
  * @file views_import.views_default.inc
  */
 
+define('VIEWS_IMPORT_DIR', 'sites/all/imports/views');
+
 /**
  * Includes file with view and returns view object or NULL if file don't have a
  * view.
@@ -28,8 +30,7 @@ function _views_import_fetch_view($uri) {
  * @return array
  */
 function views_import_views_default_views() {
-  $dir = 'sites/all/imports/views';
-  $files = file_scan_directory($dir, '/\.inc$/', array('recurse' => FALSE));
+  $files = file_scan_directory(VIEWS_IMPORT_DIR, '/\.inc$/', array('recurse' => FALSE));
 
   $views = array();
   foreach ($files as $file) {
