# Ionic generate "module" why isn't his a feature on the CLI?

**URL:** <https://forum.ionicframework.com/t/ionic-generate-module-why-isnt-his-a-feature-on-the-cli/117498>\
**Category:** ionic-v3\
**Created:** [January 7, 2018, 6:35pm UTC](https://forum.ionicframework.com/t/ionic-generate-module-why-isnt-his-a-feature-on-the-cli/117498 "2018-01-07T18:35:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessycormier](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jessycormier/32/116297_2.png) [@jessycormier](https://forum.ionicframework.com/u/jessycormier)\
**Post date:** [January 7, 2018, 6:35pm UTC](https://forum.ionicframework.com/t/ionic-generate-module-why-isnt-his-a-feature-on-the-cli/117498/1 "2018-01-07T18:35:54Z")

</div>

Hello, I come from a angular CLI (angluar 4/5 project) learning Ionic. and I’ve noticed we’re missing a few key things from the Ionic CLI such as generating modules. Is there a reason for this ? I see in the docs Ionic does support modules.

Another comment is that the documentation should show which version of ionic it is for to make sure its clear to the reader these features for for the same version they’re working with.

Thanks in advance to any advice or help!

---

<div class="post-metadata">

**Author:** ![AaronSterling](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AaronSterling](https://forum.ionicframework.com/u/AaronSterling)\
**Post date:** [January 7, 2018, 7:07pm UTC](https://forum.ionicframework.com/t/ionic-generate-module-why-isnt-his-a-feature-on-the-cli/117498/2 "2018-01-07T19:07:27Z")

</div>

Neither routing nor lazy loading takes place via modules, so there are some (hidden) fundamental differences between Ionic and Angular projects. The Ionic CLI was designed for developers creating small apps (think less than 10 pages). For large apps or PWA’s, a different approach is needed. One user here is putting together an approach using Angular schematics that he’s made public. I’ve adopted a different approach that I haven’t made public yet, but the key point for me is that I separate out modules with providers from view modules, and I eagerly load the former lazily load the latter.

If you come up with any new great ideas, please let us know. The best practices here is not yet determined, and it may change again depending on what routing looks like in Ionic 4.

---

<div class="post-metadata">

**Author:** ![jessycormier](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jessycormier/32/116297_2.png) [@jessycormier](https://forum.ionicframework.com/u/jessycormier)\
**Post date:** [January 7, 2018, 7:41pm UTC](https://forum.ionicframework.com/t/ionic-generate-module-why-isnt-his-a-feature-on-the-cli/117498/3 "2018-01-07T19:41:06Z")

</div>

Thanks for the reply and pointing out the differences. I’ll start by getting used to the Ionic way before attempting anything complex.The app I have in mind will most likely have under 10 “pages”.

---

<div class="post-metadata">

**Author:** ![robinyo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/robinyo/32/115964_2.png) [@robinyo](https://forum.ionicframework.com/u/robinyo)\
**Post date:** [January 8, 2018, 7:45am UTC](https://forum.ionicframework.com/t/ionic-generate-module-why-isnt-his-a-feature-on-the-cli/117498/4 "2018-01-08T07:45:08Z")

</div>

@jessycormier take a look at:

- [https://robferguson.org/blog/2017/12/31/the-future-of-the-ionic-cli/](https://robferguson.org/blog/2017/12/31/the-future-of-the-ionic-cli/)
- [https://github.com/Robinyo/ionic-angular-schematics](https://github.com/Robinyo/ionic-angular-schematics)
- [https://github.com/Robinyo/big-top](https://github.com/Robinyo/big-top)
- [https://github.com/aggarwalankush/ionic-mosum](https://github.com/aggarwalankush/ionic-mosum)
- [https://github.com/ionic-team/ionic-conference-app](https://github.com/ionic-team/ionic-conference-app)
- [https://github.com/marcoturi/ionic-boilerplate](https://github.com/marcoturi/ionic-boilerplate)
- [https://github.com/ngx-rocket/generator-ngx-rocket](https://github.com/ngx-rocket/generator-ngx-rocket)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:56pm UTC](https://forum.ionicframework.com/t/ionic-generate-module-why-isnt-his-a-feature-on-the-cli/117498/5 "2021-07-19T21:56:13Z")

</div>

Closed on July 19, 2021, 9:56pm UTC


