>>> ng generate service service_name
or
>>> ng generate service /folder-name/service-name
For Creating Service you have type command like below
ng generate service service-name
or
ng g s service-name
And if you want to make service into folder
ng generate service /folder-name/service-name
or
ng g s /folder-name/service-name
ng g s serviceName
ng generate service service_name
ng g s services/data --spec=false
/*
Where:
ng = Angular CLI
g = generate
s = service
services/data = folderWhereTheServiceWillBeCreated/serviceName
--spec=false: Do not create the testing file for the service
*/