mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
1.1 KiB
1.1 KiB
Documentation below is for CLI version 6 and we no longer accept PRs to improve this. For version 7 see here.
ng generate
Overview
ng generate [name]
generates the specified schematic
Alias
g - ng g [name]
Available Schematics:
- class
- component
- directive
- enum
- guard
- interface
- module
- pipe
- service
- appShell
- application
- library
- universal
Options
dry-run
--dry-run
(alias: -d
)
Run through without making any changes.
force
--force
(alias: -f
)
Forces overwriting of files.