Generating Modules, Controllers, and Services

Learn to use NestCLI to generate modules, controllers, and services.

Now that we’ve defined our application requirements and specifications, we’ll use the NestJS CLI to create our project. This lesson will use NestCLI to generate our application’s modules, controllers, and services.

Project creation

Note: This course primarily uses npm for consistency and a seamless learning experience. It’s a widely used package manager in the JavaScript ecosystem.

To create a new project called books-api, run the following command:

Get hands-on with 1200+ tech skills courses.