ng g component componentname
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 componentName
ng generate component ComponentName
ng generate component component-name
ng generate component hero-detail
// in terminal
// add Service to (new) Component dir
ng g c Components/<componentName>
ng g component [component name]
ng generate <schematic> [options]
ng generate <schematic> [options]
ng generate component --skip-tests=true component-name