How to update NestJS?

npm update didn’t work to update Nest, as this StackOverflow answer says:

Since v9.0.0 release, the command update was removed. To upgrade your dependencies, you can use dedicated tools like ncu, npm update, yarn upgrade-interactive, etc.

So I used the npm-check-updates package and installed it

npm install -g npm-check-updates

Then I ran ncu to check the available updates, and applied them with ncu -u