Ionic Capacitor CLI Build

Hi

i want to ask how to build Ionic Apps with Capacitor only with CLI?
I mean i want to use CI Builds and with the current instructions i always have to open Android Studio.

Best,
Daniel

For debug builds run this:

ionic capacitor copy android && cd android && ./gradlew assembleDebug && cd ..

For release builds run this

ionic capacitor copy android && cd android && ./gradlew assembleRelease && cd ..
1 Like