Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating ionic 1.x app with ionic 2 CLI

I downloaded ionic 2 andI am able to create apps with it just fine. I do that by following command

ionic start cutePuppyPics1 --v2

However I still want to create 1.x apps. How can I do that without removing ionic globally and making global changes?

Something like

ionic start cutePuppyPics1 --v1

installs ionic 1.x.

I do not want to go through removing entire ionic module globally then start all over again.

Thanks.

like image 771
krv Avatar asked Dec 23 '15 14:12

krv


People also ask

What is the CLI command to create an Ionic app?

Starting a new Ionic app is incredibly simple. From the command line, run the ionic start command and the CLI will handle the rest. Please enter the full name of your app. You can change this at any time.

What is the Ionic CLI?

The Ionic CLI is the primary tool used during the process of developing an Ionic app. It's like a Swiss Army Knife: It brings together a bunch of miscellaneous tools under a single interface.


3 Answers

Now Ionic Updated the Docs.

If we want to create older version of Ionic App, Declare the Version Number while creating the App.

ionic start cutePuppyPics --type ionic1

Create latest Version (i.e - V2 or Higher) of Ionic App.

ionic start cutePuppyPics
like image 86
Vincent George Avatar answered Sep 27 '22 17:09

Vincent George


Now these are deprecated and if you want to get v1 app using cli 2 have to use

ionic start myApp --type ionic1

However using

ionic start myApp

will return latest version of ionic

like image 31
Gururaj Bhandarkar Avatar answered Sep 27 '22 19:09

Gururaj Bhandarkar


Please try the below command:

ionic start cutePuppyPics1 --type=ionic1

Reference : https://github.com/ionic-team/ionic-cli

like image 34
Prijesh Meppayil Avatar answered Sep 27 '22 18:09

Prijesh Meppayil