Skip to main content

ionic-cloud live-update set-native-versions

[ionic-cloud, live-update, set-native-versions]

Control when an update happens based on native features and binary version

ionic-cloud live-update set-native-versions [flags]

Examples

ionic-cloud live-update set-native-versions --app-id=b3456cd --build-id=baf924a --ios-min=1.2.3 --android-min=1.2.3

Flags

NameTypeDefaultDescription
--app-id [required]stringAppflow app id
--build-id [required]numberAppflow build id
--android-eqstringIf the Android native binary is this version, do NOT download this live update, because they are equal
--android-maxstringAndroid native binary must be this version or below in order to download this live update
--android-minstringAndroid native binary must be at least this version in order to download this live update
--ios-eqstringIf the iOS native binary is this version, do NOT download this live update, because they are equal
--ios-maxstringiOS native binary must be this version or below in order to download this live update
--ios-minstringiOS native binary must be at least this version in order to download this live update

Global Flags

NameTypeDefaultDescription
-h, --helpbooleanfalsePrint help information for command
--configstringIonic Cloud config file (.ionic-cloud.yaml by default)
--jsonbooleanfalseFor commands with output, shortcut to print as JSON
--outputstring"text"For commands with output, print as [json] or human readable [text]
--tokenstringIonic authorization token

Outputs

NameTypeDescription
appIdstringYour app's unique identifier in Appflow.
buildIdnumberA unique identifier for a build done in Appflow.
androidMin (optional)stringThe Native Binary version that is the minimum required in order to use this Live Update.
androidMax (optional)stringThe Native Binary version that is the maximum still allowed to use this Live Update.
androidEq (optional)stringThe Native Binary version that should be considered equivalent and ignore this Live Update.
iosMin (optional)stringThe Native Binary version that is the minimum required in order to use this Live Update.
iosMax (optional)stringThe Native Binary version that is the maximum still allowed to use this Live Update.
iosEq (optional)stringThe Native Binary version that should be considered equivalent and ignore this Live Update.
Successful Output
{
"appId": "052b32ac",
"buildId": 6010455,
"androidMin": "1.0.0",
"androidMax": "1.3.0",
"androidEq": "1.2.3",
"iosMin": "1.0.0",
"iosMax": "1.3.0",
"iosEq": "1.2.3"
}
Failed Output