capacitor get app version and build code example
Example: capacitor change app version
Android - android/app/build.gradle (you're looking for the versionName variable)
iOS - ios/App/App/Info.plist *(you're looking for the CFBundleShortVersionString key)