The tns create <project_name> command

This command is what we use to create a new project. This will create a new directory and install all the platform-independent code required to build a new app. The important parameters for this are --ng, which tells it to use the Angular template (which is what we are using in this book--without --ng, you get the plain JS template) and the --appid, which allows you to set your full app name. So, tns create AwesomeApp --ng --appid com.mastertechapps.awesomeapp will create a new Angular app in the AwesomeApp directory with the app ID, com.mastertechapps.awesomeapp.

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.