Forrest logo
back to the bundletool tool

bundletool:tldr:0c3a8

bundletool: Generate APKs from an application bundle giving the keystore password.
$ bundletool build-apks --bundle=${path-to-bundle-aab} --ks=${path-to-key-keystore} --ks-key-alias=${key_alias} –ks-pass=${pass:the_password} --output=${filename-apks}
try on your machine

This command is using the "bundletool" tool to build APKs (Android Application Packages) from an Android App Bundle file (.aab). Here is a breakdown of the command and its arguments:

  • bundletool: The name of the tool being executed.
  • build-apks: A specific sub-command of bundletool for building APKs.

Arguments:

  • --bundle=${path-to-bundle-aab}: Specifies the path to the Android App Bundle file (.aab) that should be used to build APKs.
  • --ks=${path-to-key-keystore}: Specifies the path to the keystore file (.jks) that will be used for signing the APKs.
  • --ks-key-alias=${key_alias}: Specifies the alias of the private key within the keystore file that will be used for signing the APKs.
  • –ks-pass=${pass:the_password}: Specifies the password for accessing the keystore file. Note that "the_password" should be replaced with the actual password.
  • --output=${filename-apks}: Specifies the desired output file name for the generated APKs. The file will be an .apks package file that contains multiple APKs in one.

Make sure to replace the placeholder values (e.g., ${path-to-bundle-aab}) with the actual paths and filenames specific to your environment.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the bundletool tool