code: async function init(dirPath, options) {
    const config = configMap[options.type]
    const templateProject = path.join(templateDir, config.name)
  
    if (options.newest) {
      // 删除模板，为了拉取新模板
      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)
    }
  
    await _.recursiveMkdir(dirPath)
  
    await copy(templateProject, dirPath)
  }
docs: 执行初始化命令