diff --git a/lib/conceptql/cli.rb b/lib/conceptql/cli.rb
index <HASH>..<HASH> 100644
--- a/lib/conceptql/cli.rb
+++ b/lib/conceptql/cli.rb
@@ -4,6 +4,7 @@ require 'thor'
 require 'sequelizer'
 require 'json'
 require 'pp'
+require 'csv'
 require_relative 'query'
 require_relative 'knitter'
 
@@ -112,6 +113,20 @@ module ConceptQL
       ConceptQL::Knitter.new(ConceptQL::Database.new(db), file, opts).knit
     end
 
+    desc 'dumpit', 'Dumps out test data into CSVs'
+    def dumpit(path)
+      path = Pathname.new(path)
+      path.mkpath unless path.exist?
+      db.tables.each do |table|
+        puts "Dumping #{table}..."
+        ds = db[table]
+        rows = ds.select_map(ds.columns)
+        CSV.open(path + "#{table}.csv", "wb") do |csv|
+          rows.each { |row| csv << row }
+        end
+      end
+    end
+
     private
     desc 'show_and_tell_db conceptql_id', 'Fetches the ConceptQL from a DB and shows the contents as a ConceptQL graph, then executes the statement against our test database'
     option :full
Add dumpit, a command to dump test data to CSVs