Installation & Setup in Angular

From the Angular cheat sheet ยท Setup & CLI ยท verified Jul 2026

Installation & Setup

Setting up Angular development environment

typescript
# Install Angular CLI globally
npm install -g @angular/cli

# Create new project
ng new my-app
# Options: routing, CSS/SCSS/Sass/Less

# Start development server
ng serve
ng serve --open  # Opens browser
ng serve --port 4201

# Build for production
ng build
ng build --configuration production
๐Ÿ’ก Use ng new with --strict for stricter TypeScript settings
โšก ng serve automatically reloads on file changes
๐Ÿ“Œ Production builds include tree-shaking and minification
๐Ÿ”ฅ Use ng update to keep Angular versions in sync

Continue with Angular

Save the full cheat sheet or work through every related task.

More Angular tasks

Back to the full Angular cheat sheet