Steps :
- Go to the project folder
npm install
to install dependenciesnpm install -g @ionic/cli
to install ionic cli globallyionic serve
to run the web version of app
ionic build
for generating a development build orionic build --prod
for production buildionic cap add android
only onceionic cap open android
to open the project in android studio
ionic build
for generating a development build orionic build --prod
for production buildionic cap add ios
only onceionic cap open ios
to open the project in xcode
ionic build
for generating a development build orionic build --prod
for production buildionic cap add electron
only onceionic cap open electron
to launch application
- Always use
npx cap copy
to update the build rather than executingionic cap add <platform>