I need to create ten Angular components like comp1, comp2, comp3, comp4, ..., comp10. So I need to execute same command for ten times for each component like ng g c comp1, ng g c comp2, etc.
Is there any option to generate multiple angular components using single angular-cli command like ng g c comp1, comp2, comp3.
Well, there is nothing as of now by Angular CLI to create multiple components. But this can be done trivially in any shell.
Run this command into your bash shell -
Special thanks to Ingo Bürk's answer
Microsoft Windows variants
In root:
In module:
In module, without tests:
Angular - ng generate
Windows CMD FOR command reference
Make one module
ng g m module
Than run below command for generating multiple components inside it
ng g c modules/main/components/component1 modules/main/components/component2