0% found this document useful (0 votes)
150 views

Ionic Commands Cheat Sheet

To install Ionic and generate a new application, developers must first install Node.js and then Ionic and Cordova using npm. They can then use the ionic start command to generate a new app from built-in templates like tabs or sidemenu or from an online codepen.io example. The app can be viewed in the browser via ionic serve or uploaded to Ionic View to be viewed on actual devices. Ionic also allows emulating native devices by adding platforms like iOS and using the ionic emulate command.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views

Ionic Commands Cheat Sheet

To install Ionic and generate a new application, developers must first install Node.js and then Ionic and Cordova using npm. They can then use the ionic start command to generate a new app from built-in templates like tabs or sidemenu or from an online codepen.io example. The app can be viewed in the browser via ionic serve or uploaded to Ionic View to be viewed on actual devices. Ionic also allows emulating native devices by adding platforms like iOS and using the ionic emulate command.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Ionic Commands Cheat Sheet

Installing Ionic

- Download and install Node.js


- Install Ionic and Cordova:
npm install -g cordova ionic

Generating a New Ionic Application

- Basic:
ionic start MyApp blank

- From built in templates:


ionic start MyApp sidemenu
ionic start MyApp tabs

- From codepen.io:
ionic start MyApp http://codepen.io/ionic/pen/AjgEB

Setting up SASS
cd MyApp
npm install -g gulp (if not already installed)
ionic setup sass

Running an Ionic Application


ionic serve

Viewing an Ionic Application on a Device

- Download Ionic View


ionic login
ionic upload

- Open Ionic View to download and view application


1

Emulating a Native Device


npm install -g ios-sim (if not already installed)
ionic platform add ios
ionic build ios
ionic emulate ios
NOTE: To use the iOS emulator you need a Mac (but you can still build from a different
OS using PhoneGap Build)

You might also like