常用命令

TIP

全局安装Nest CLI 后可使用 nest 命令

创建项目

  • nest new [options] [name]

    • nest new -h查看[options]具体选项

    • [name]为项目名称

生成新的模块

nest g resource [name] [--no-spec]

  • [name] 模块名称

  • [--no-spec] 避免生成测试文件