Skip to content

Getting Started

Generate a new Angular project using the Angular CLI with a specific version:

use the command pnpx @angular/cli@<SPECIFIC_VERSION> new my-app-name as exemplified below:

Terminal window
pnpx @angular/cli@18 new my-app --package-manager pnpm

You can pass several flags to this command:

Terminal window
pnpx @angular/cli@18 new todo-angular --routing --style=scss --standalone false --package-manager pnpm --ssr=false

Generate a component without test files:

Terminal window
ng generate component dir/my-component --skip-tests

also:

Terminal window
ng g c shared/my-component --standalone=false --module app.module

Serve the application locally:

Terminal window
ng serve