Adding ionic cli to existing ionic project

Install nodejs if you haven't - https://nodejs.org

Now, once you installed node, you need to install cordova and ionic globally by using this command

$ npm install -g cordova ionic

Note: If you are using MAC you need to use sudo for admin rights

Once everything is loaded, you can start a project using:

$ ionic start myApp bank - starts from a blank project

or

$ ionic start myApp tabs - starts a tabs template

You can look for more templates at http://ionicframework.com/getting-started/

For existing Projects:

cd to your existing project (make sure you already installed node, cordova and ionic)

Type in $ ionic serve that will run your app to the browser.

Need help on ionic type in $ ionic --h


  • First Install Nodejs if you haven't
  • You can verify whether you have nodejs by typing node
  • Than install cordova and ionic globally by typing this command in cmd or terminal
    npm install -g cordova ionic If you get error than verify that you have npm installed.
  • You have ionic installed
  • Now open cmd/terminal navigate to your project and type ionic

Install the Ionic CLI The easiest way to get the Ionic CLI is through npm.

$ npm install -g ionic

Note: For a global install of -g ionic, OSX/Linux users may need to prefix the command with sudo.