Generate APKs from an application bundle giving the keystore password

bundletool

  • Command-line tool to manipulate Android Application Bundles.
    Some subcommands such as `bundletool validate` have their own usage documentation.
    More information: <https://developer.android.com/studio/command-line/bundletool>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

bundletool build-apks --bundle={{path/to/bundle.aab}} --ks={{path/to/key.keystore}} --ks-key-alias={{key_alias}} –ks-pass={{pass:the_password}} --output={{path/to/file.apks}}

click the source code to copy install bundletool on any operating system with command-not-found.com