Back to technologies
/angular
Angular CLI command reference
Common Angular CLI commands for modern frontend development.
13 matches
Project Setup
5 commands
ng new my-appCreate a new Angular application.
ng serveStart the Angular development server.
ng buildBuild the project for development.
ng build --configuration productionBuild an optimized production bundle.
ng testRun the unit test suite.
Code Generation
4 commands
ng generate component users/listGenerate a new component in a feature folder.
ng generate service api/userCreate a reusable Angular service.
ng generate module admin --routingGenerate a feature module with its routing config.
ng generate guard authScaffold a route guard.
Tooling & Maintenance
4 commands
ng add @angular/materialAdd Angular Material to a project.
ng update @angular/core @angular/cliUpgrade Angular and the CLI to the latest version.
ng lintRun lint checks for the project.
ng versionShow Angular CLI and framework versions.