Install the cli:

npm install -g @angular/cli

Create a new project and run it:

ng new my-first-project
cd my-first-project
ng serve

Build project for production:

ng build my-app -c production