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]
Examples
ionic-cloud build android debug --app-id=a1234bc --commit=a9eb85e
ionic-cloud build android release --app-id=b3456cd --commit=4c511f1
ionic-cloud build android debug --app-id=a1234bc --commit=a9eb85e --environment="My Custom Environment Name"
ionic-cloud build android debug --app-id=a1234bc --commit=a9eb85e --native-config="My Custom Native Config Name"
ionic-cloud build android release --app-id=b3456cd --commit=4c511f1 --aab --apk --apk-name="my-app-prod.apk"
Flags
Name | Type | Default | Usage |
---|---|---|---|
--app-id [required] | string | Appflow app id | |
--commit [required] | string | Commit sha | |
--aab | bool | false | Download aab file |
--aab-name | string | Download aab and rename file. Example: mapp.aab | |
--apk | bool | false | Download apk file |
--apk-name | string | Download apk and rename file. Example: myapp.apk | |
--app-bundle-id | string | Native config application bundle ID. Example: com.company.app | |
--app-name | string | Native config application name | |
--build-stack | string | Target platform ("Linux - 2022.10" / "Linux - 2022.07" / "Linux - 2021.10" / "Linux - 2021.09"), defaults to latest stack | |
--detached | bool | false | Asynchronously 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. |
--environment | string | The name of the predefined Appflow Environment to expose to your build | |
--live-update-app-id | string | Appflow application ID | |
--live-update-channel-name | string | Live Update channel name | |
--live-update-disable-deploy | bool | false | Disable Live Updates from being applied |
--live-update-max-store | int | 2 | Number of previous Live Updates that can be stored on a device |
--live-update-method | string | "background" | Live Update method to determine how the app will check for and apply updates, "background", "auto", or "none" |
--live-update-min-background-duration | int | 30 | Number of seconds the app needs to be in the background for it to have been considered "closed" |
--native-config | string | The name of the native config to use for the build. Native configs are defined in the UI. | |
--secret | []string | [] | Secrets to expose to your build. Example: --secret VAR=value |
--signing-cert | string | Signing certificate |
Global Flags
Name | Type | Default | Usage |
---|---|---|---|
-h, --help | bool | false | help for android |
--config | string | config file | |
--json | bool | false | For commands with output, shortcut to print as JSON |
--output | string | "text" | For commands with output, print as [json] or human readable [text] |
--token | string | Ionic authorization token | |
-v, --verbose | bool | false | verbose output |