Skip to main content

ionic-cloud build android

This command creates an Android build on Appflow. While the build is running, it prints the remote build log to the terminal.

ionic-cloud build android [debug, release] [flags]


-h, --helpboolfalsehelp for android
--aabboolfalseDownload aab file
--aab-namestringDownload aab and rename file
--apkboolfalseDownload apk file
--apk-namestringDownload apk and rename file
--app-bundle-idstringNative config application bundle ID. Example:
--app-namestringNative config application name
--build-stackstringTarget platform ("Linux - 2021.10" / "Linux - 2021.09" / "Linux - 2020.11" / "Linux - 2020.09" / "Linux - 2020.06"), defaults to latest stack
--live-update-app-idstringAppflow application ID
--live-update-channel-namestringLive Update channel name
--live-update-disable-deployboolfalseDisable Live Updates from being applied
--live-update-max-storeint2Number of previous Live Updates that can be stored on a device
--live-update-methodstring"background"Live Update method to determine how the app will check for and apply updates, "background", "auto", or "none"
--live-update-min-background-durationint30Number of seconds the app needs to be in the background for it to have been considered "closed"
--native-configstringThe name of the native config to use for the build. Native configs are defined in the UI.
--signing-certstringSigning certificate

Inherited Flags#

--app-id [required]stringAppflow app id
--commit [required]stringCommit sha
--detachedboolfalseAsynchronously run appflow build
--env[]string[]Variables to expose to your build. Variables defined this way override those loaded using the env-file flag. Example: --env VAR=value
--env-file[]string[]Files declaring environment variables to expose to your build. Variables from later files overwrite variables from earlier files.
--environmentstringThe name of the predefined Appflow Environment to expose to your build
--jsonboolfalseShortcut to print build output as JSON
--outputstring"text"Print build output as [json] or human readable [text]
--secret[]string[]Secrets to expose to your build. Example: --secret VAR=value
--configstringconfig file
--tokenstringIonic authorization token
-v, --verboseboolfalseverbose output


ionic-cloud build android debug --app-id=a1234bc --commit=a9eb85ea214a6cfa6882f4be041d5cce7bee3e45ionic-cloud build android release --app-id=b3456cd --commit=4c511f16ef2644854d04cabebfcecc82be0eb04fionic-cloud build android debug --app-id=a1234bc --commit=a9eb85ea214a6cfa6882f4be041d5cce7bee3e45 --environment="My Custom Environment Name"ionic-cloud build android debug --app-id=a1234bc --commit=a9eb85ea214a6cfa6882f4be041d5cce7bee3e45 --native-config="My Custom Native Config Name"ionic-cloud build android release --app-id=b3456cd --commit=4c511f16ef2644854d04cabebfcecc82be0eb04f --aab --apk --apk-name="my-app-prod.apk"