ng generate component newComponentName
//or
ng g c newComponentName
//Angular > 8
ng g c your-component-name --skipTests=true
ng g c folder-name/your-component-name --skipTests=true
//Angular < 8
ng g c your-component-name --spec=false
$ ng g c <folder>/<new-component>
Angular:
Add --flat flag.
ng g c yourcomponentname --flat
--flat=true|false
When true, creates the new files at the top level of the current project.
Default: false
ng g c folder/inner-folder