bundletool Command Examples

Manipulate Android Application Bundles. Some subcommands such as bundletool validate have their own usage documentation. More information: https://developer.android.com/tools/bundletool.

bundletool help {{subcommand}}

bundletool build-apks --bundle {{path/to/bundle.aab}} --ks {{path/to/key.keystore}} --ks-key-alias {{key_alias}} --output {{path/to/file.apks}}

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}}

bundletool build-apks --bundle {{path/to/bundle.aab}} --mode {{universal}} --ks {{path/to/key.keystore}} --ks-key-alias {{key_alias}} --output {{path/to/file.apks}}

bundletool install-apks --apks {{path/to/file.apks}}

bundletool get-size total --apks {{path/to/file.apks}}

bundletool get-device-spec --output {{path/to/file.json}}

bundletool validate --bundle {{path/to/bundle.aab}}