code: async function upgrade(dirPath, options) {
    // 删除旧模板，拉取新模板
    await _.removeDir(templateProject)
    await _.downloadTemplate(config, options.proxy)
  
    const isTemlateExist = await _.checkDirExist(templateProject)
  
    if (!isTemlateExist) {
      // eslint-disable-next-line no-console
      console.log('can not download the template project, please check your internet connection.')
      process.exit(1)
    }
  
    const override = options.override || []
  
    if (options.force || checkOverride('package.json', override)) {
      await upgradePackageJson(dirPath)
    }
  
    await copyOthers(dirPath, options)
  }
docs: 执行升级命令