Show Menu
Cheatography

Creating a new app

cd documents/projects
ionic start app_name {tabs|sidemenu|blank}
cd app_name

Android Prepar­ation

cd documents/projects/app_name
ionic prepare andoid
cordova build —release android
cd platforms/android/build/outputs/apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore keystore_name.keystore android-release-unsigned.apk keystore_name
zipalign -f -v 4 android-release-unsigned.apk app_name.apk
 

Various Commands

Install Cordova CLI
npm install -g cordova ionic
Generate Resources
ionic resources
Add Platform
ionic platform add {ios|a­ndroid}
Remove Platform
ionic platform remove {ios|a­ndroid}
Prepare Platform
ionic prepare {ios|a­ndroid}
Run Ios
ionic run ios --targ­et=­"­iPh­one­-5"
Run Android
ionic run android
Build Android
cordova build --release android
Restore Plugins
cordova state restore --plugins
Reset Plugins
cordova state reset
Instal­l/U­pdate Node Modules
npm update
Instal­l/U­pdate Global Node Modules
npm update -g
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets