Skip to content
Advertisement

What is the –watch and –debug option in nest start

I read following documentation described nest command.

https://docs.nestjs.com/cli/scripts

According to the document, following must be added to package.json

"build": "nest build",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",

What are the --watch and --debug options?

Advertisement

Answer

In general, --watch means the terminal will stay open and watch for any file changes and then reload the server. --debug means it will log more messages to the console (e.g. info or warnings), which can be helpful for debugging.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement