HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ng new — Create and initialize a new Angular application. More information: <https://angular.dev/cli/new>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
angularcreatecommandng newandnewcliinitialize

Problem

How to use the ng new command: Create and initialize a new Angular application. More information: <https://angular.dev/cli/new>.

Solution

ng new — Create and initialize a new Angular application. More information: <https://angular.dev/cli/new>.

Create a new Angular application:
ng {{[n|new]}} {{app_name}}


Preview the actions without creating files:
ng {{[n|new]}} {{app_name}} {{[-d|--dry-run]}}


Skip generating unit test (spec.ts) files:
ng {{[n|new]}} {{app_name}} {{[-S|--skip-tests]}}


Skip automatic package installation:
ng {{[n|new]}} {{app_name}} --skip-install


Skip Git repository initialization:
ng {{[n|new]}} {{app_name}} {{[-g|--skip-git]}}


Configure AI tooling for the project:
ng {{[n|new]}} {{app_name}} --ai-config {{claude|copilot|cursor|gemini|jetbrains|none|windsurf}}


Disable interactive prompts:
ng {{[n|new]}} {{app_name}} --interactive false

Code Snippets

Create a new Angular application

ng {{[n|new]}} {{app_name}}

Preview the actions without creating files

ng {{[n|new]}} {{app_name}} {{[-d|--dry-run]}}

Skip generating unit test (`spec.ts`) files

ng {{[n|new]}} {{app_name}} {{[-S|--skip-tests]}}

Skip automatic package installation

ng {{[n|new]}} {{app_name}} --skip-install

Skip Git repository initialization

ng {{[n|new]}} {{app_name}} {{[-g|--skip-git]}}

Context

tldr-pages: common/ng new

Revisions (0)

No revisions yet.