How to use Nativescript CLI locally

If you want to use Nativescript CLI locally instead of globally you can.

To do that go to the root folder of your project and run

npm i --save-dev nativescript

And then to use it locally

npx tns --help