Capacitor build android/ios scripts

Is there a command to be able to generate the Android (APK) and IOS builds without using the IDE (Xcode or Android studio).
We have the build of our app automated running 2 parallel scripts, where we sign the apps using the shell scripts. But with Capacitor I am unable to make an APK or IPA. There is no build command (npx cap build ios)