# Ionic2 generate is not a valid task

**URL:** <https://forum.ionicframework.com/t/ionic2-generate-is-not-a-valid-task/57299>\
**Category:** ionic-v3\
**Created:** [July 12, 2016, 4:32pm UTC](https://forum.ionicframework.com/t/ionic2-generate-is-not-a-valid-task/57299 "2016-07-12T16:32:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cheaf](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cheaf/32/99034_2.png) [@Cheaf](https://forum.ionicframework.com/u/Cheaf)\
**Post date:** [July 12, 2016, 4:32pm UTC](https://forum.ionicframework.com/t/ionic2-generate-is-not-a-valid-task/57299/1 "2016-07-12T16:32:53Z")

</div>

Hi there… I was using outdate beta version for a while and now with fresh ionic@beta installation trying to use page generation.

CLI replies for a simple “ionic generate page test”:  
generate is not a valid task

CLI v1.7.16, installed automatically via “npm -g install ionic@beta”

Please advice…

–\> solved, watch post below

---

<div class="post-metadata">

**Author:** ![Cheaf](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cheaf/32/99034_2.png) [@Cheaf](https://forum.ionicframework.com/u/Cheaf)\
**Post date:** [July 12, 2016, 4:49pm UTC](https://forum.ionicframework.com/t/ionic2-generate-is-not-a-valid-task/57299/2 "2016-07-12T16:49:03Z")

</div>

please ignore question above… got conflict with installation under sudo user and without it, so framework version was latest, while there was old cli
