Skip to main content

ionic-cloud build web

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

ionic-cloud build web [flags]

Examples

ionic-cloud build web --app-id=a1234bc --commit=a9eb85e
ionic-cloud build web --app-id=a1234bc --commit=a9eb85e --web-preview
ionic-cloud build web-preview --app-id=b3456cd --commit=4c511f1 --environment="My Custom Environment Name"

Aliases

  • "live-update"
  • "web-preview"

Flags

NameTypeDefaultUsage
--app-id [required]stringAppflow app id
--commit [required]stringCommit sha
--build-stackstringTarget platform ("Linux - 2021.10" / "Linux - 2022.07" / "Linux - 2021.09" / "Linux - 2020.11" / "Linux - 2020.09"), defaults to latest stack
--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
--secret[]string[]Secrets to expose to your build. Example: --secret VAR=value
--web-previewboolfalseEnable web preview
--zipboolfalseDownload zip file
--zip-namestringDownload zip and rename file

Global Flags

NameTypeDefaultUsage
-h, --helpboolfalsehelp for web
--configstringconfig file
--jsonboolfalseFor commands with output, shortcut to print as JSON
--outputstring"text"For commands with output, print as [json] or human readable [text]
--tokenstringIonic authorization token
-v, --verboseboolfalseverbose output