According to this command,
ng generate module <module path to be created> --module=<parent module path where its component to be declared> --route=<route_url>
example:
ng g m components/login --module=app.module --route=login
It also creates component files under components folder.
--module is the module where its component want to be declared (Its component was not added to the app.module.ts though)
--route is the route it wants to be added in app-routing.module.ts
Only module