I want to build an Android Studio app (the Gradle build system), but I want to do this via the command line.
Adding value to all these answers,
many have asked the command for running App in AVD after build sucessful.
adb install -r {path-to-your-bild-folder}/{yourAppName}.apk