Search code examples
ionic-frameworkionic-cli

ionic cli vs ionic cli2


I have not seen/found anything about the differences between ionic cli v1 and ionic cli v2, and I had a couple of questions related to this, if anyone could let me know it would be super helpful.

I have an ionic v1 project, but when I run any ionic commands, it tells me my cli (1.7.16) is out of date, and that I should update to ionic cli v2.

So my questions are:

  1. Since I have an ionic v1 project, should I be updating to cli 2, should the cli 2 support both ionic v1 and v2 projects?
  2. Related to this, it looks like cli 2 kind of works with my ionic 1 project, however, it keeps on telling me that I should change ionic.project to ionic.config.json, so I was wondering, is this recommendation actually a difference between ionic v1 and ionic v2 projects, and that since I have ionic v1, I should keep it as ionic.project, or should I really switch it to ionic.config.json.

Any advice would be greatly appreciated.


Solution

  • Yes the cli v2 supports ionic 1 projects, so you should have no issues there. The change to ionic.config.json does apply to both v1 and v2 projects.