var OS = require("os");
var Config = require("truffle-config");
var Contracts = require("../contracts");
var Resolver = require("truffle-resolver");
var Artifactor = require("truffle-artifactor");
var Migrate = require("truffle-migrate");
var Environment = require("../environment");

var command = {
  command: 'migrate',
  description: 'Run migrations to deploy contracts',
  builder: {
    reset: {
      type: "boolean",
      default: false
    },
    "compile-all": {
      describe: "recompile all contracts",
      type: "boolean",
      default: false
    }
  },
  run: function (options, done) {
    var config = Config.detect(options);

    Contracts.compile(config, function(err) {
      if (err) return done(err);

      Environment.detect(config, function(err) {
        if (err) return done(err);

        config.logger.log("Using network '" + config.network + "'." + OS.EOL);

        Migrate.needsMigrating(config, function(err, needsMigrating) {
          if (err) return done(err);

          if (needsMigrating) {
            Migrate.run(config, done);
          } else {
            config.logger.log("Network up to date.")
            done();
          }
        });
      });
    });
  }
}

module.exports = command;

@@ -550,24 +550,119 @@
 ault: false%0A
+    %7D,%0A    f: %7B%0A      describe: %22Specify a migration number to run from%22,%0A      type: %22number%22%0A
     %7D%0A  %7D,%0A 
@@ -977,24 +977,120 @@
 + OS.EOL);%0A%0A
+        if (options.f) %7B%0A          Migrate.runFrom(options.f, config, done);%0A        %7D else %7B%0A  
         Migr
@@ -1150,32 +1150,34 @@
 ng) %7B%0A          
+  
 if (err) return 
@@ -1180,32 +1180,34 @@
 urn done(err);%0A%0A
+  
           if (ne
@@ -1226,32 +1226,34 @@
 ) %7B%0A            
+  
 Migrate.run(conf
@@ -1265,32 +1265,34 @@
 one);%0A          
+  
 %7D else %7B%0A       
@@ -1276,32 +1276,34 @@
        %7D else %7B%0A
+  
             conf
@@ -1355,16 +1355,18 @@
     
+ 
+ 
 done();%0A
     
@@ -1361,16 +1361,18 @@
 done();%0A
+  
         
@@ -1379,28 +1379,40 @@
   %7D%0A        
+  
 %7D);%0A
+        %7D%0A
       %7D);%0A  

Add the -f option to run from a specific migration.