Question presented to candidate:
"What does the Angular CLI do for a team, and what do ng new, ng generate, ng build, ng test and ng update actually give you today?"
What a strong answer should cover:
- The CLI is the official command-line tool for creating, developing, building, testing and upgrading Angular workspaces.
ng newscaffolds a workspace with sensible defaults (in v22: standalone, zoneless, Vitest, esbuild application builder).ng generateruns schematics to create components, services, guards and more in the project conventions.ng serve/ng builduse the esbuild-based@angular/buildbuilders; production builds apply AOT, minification, hashing and budgets.ng testruns unit tests (Vitest by default for new projects since v21);ng addinstalls and configures libraries;ng updateupgrades with automatic migrations.angular.jsonholds the architect targets (build, serve, test) the commands run.
Clarifying questions expected:
- "Is this a new project, or an existing workspace that might still use the older webpack builder or Karma?"
Code / implementation expected: Optional β the command sequence for a new project and what each produces.