INFO

Angular CLI commands – ng new

You need to know what are the commands to create and run a project as without them it would be very hard to use Angular CLI. Why? The CLI stands for the Command Line Interface.

ng new new-project

This is the first command that you will look for. It allows you to set up a new project. The new-project is nearly everything that you could use to create a project name.

Once you use it you will get a brand new Angular project like this one below.

ng new --minimal new-project

This is basically the same command but it will save you some space on the disk. Once you run this command you will get a minimal project structure, that looks like this

As you can see all test-related files are gone.

More about ng new can be found in the Angular CLI tutorial.

You may also like...