angular cli application code example Example 1: install angular on mac npm install -g @angular/cli Example 2: angular new project ng new project_name