How to create a new project or an app in Nestjs?

January 26, 2022 - 1 min read

To create a new project in Nestjs, you can use the Nestjs CLI command called nest followed by the keyword new then the name of the project you need to use.

For example, let's say we need to make a project called todo in Nestjs, so we can use the nest command like this,

# Create a new Nestjs
# project called `todo`
nest new todo

Note: To know more about installing the Nestjs CLI see the blog on How to install Nestjs CLI?.

After executing the above command you can see that a directory called the todo is created and inside the directory, you can find the default boilerplate files and folders required for the Nestjs app to run.

See the default Nestjs app live on codesandbox.

That's all 😃!

Feel free to share if you found this useful 😃.