how to add android and ios platform in ionic cli 3.3.0

Harish Mahajan picture Harish Mahajan · Jun 2, 2017 · Viewed 10.7k times · Source

I update ionic and trying to add android and ios platform but i could not add it. it shows me following message in console.

js20@js20:~/Desktop/project$ ionic platform add android
The platform command has been renamed. To find out more, run:

ionic cordova platform --help

My ionic version

js20@js20:~/Desktop/project$ ionic -v
3.3.0

Answer

Harish Mahajan picture Harish Mahajan · Jun 2, 2017

we can simply use following commands

ionic cordova platform add android
or
ionic cordova platform add ios

to run

ionic cordova run android --device
ionic cordova run ios
ionic cordova run ios --prod --release

to build

ionic cordova build android
ionic cordova build ios
ionic cordova build ios --prod --release