ng generate: Your Project's Code Wizard

ng generate is a command-line wizard for scaffolding new Angular features. It doesn't just create files; it wires them into your app. Use `ng g component my-component` to create components, services, and more.
ng generate is your project's command-line code wizard. Instead of manually creating files and writing boilerplate, you use schematics to generate consistent, pre-configured Angular building blocks. Running `ng g component user-profile` creates the component's files and automatically declares it in the correct module. The footgun is not realizing it modifies existing files; always use the `--dry-run` flag first to preview all changes.
Read the original → angular.dev
- #angular
- #cli
- #scaffolding
- #schematics
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.