ionic cap build --prod code example
Example: capacitor.ionicframework.com to apk
ionic capacitor copy android && cd android && ./gradlew assembleDebug && ./gradlew installDebug && cd ..
ionic capacitor copy android && cd android && ./gradlew assembleDebug && ./gradlew installDebug && cd ..