code: function run(cb) {
    // check if template is local
    if (/^[./]|(\w:)/.test(template)) {
      var templatePath = template.charAt(0) === '/' || /^\w:/.test(template)
        ? template
        : path.normalize(path.join(process.cwd(), template))
      if (exists(templatePath)) {
        generate(name, templatePath, to, cb)
      } else {
        logger.fatal('Local template "%s" not found.', template)
      }
    } else {
      checkVersion(function () {
        if (!hasSlash) {
          // use official templates
          var officialTemplate = 'vuejs-templates/' + template
          if (template.indexOf('#') !== -1) {
            downloadAndGenerate(officialTemplate, cb)
          } else {
            if (template.indexOf('-2.0') !== -1) {
              warnings.v2SuffixTemplatesDeprecated(template, inPlace ? '' : name)
              return
            }
  
            warnings.v2BranchIsNowDefault(template, inPlace ? '' : name)
            downloadAndGenerate(officialTemplate, cb)
          }
        } else {
          downloadAndGenerate(template, cb)
        }
      })
    }
  }
docs: Check, download and generate the project.