fx ota

perform a system OTA on a connected device

usage: fx ota [--help] [--build|--no-build] [--serve] [--packageless|--no-packageless]

  --build | --no-build               Build (or not) the 'updates' target before initiating OTA.
  --serve                            Spawn 'fx serve' for the duration of the OTA if not already running.
  --packageless | --no-packageless   Use (or not) a packageless update (direct blob fetching).
                                     Defaults to '--packageless'.
  --help                             Print out this message.

Ask the connected Fuchsia device to do an OTA.
Depending on the flags, this command will attempt to build the necessary
dependencies ('fx build updates') before requesting the OTA.

The default for --build is defined by the "incremental" feature:
   'fx --enable=incremental ota'  defaults to '--build'
   'fx --disable=incremental ota'  defaults to '--no-build'

A package server needs to be running and this command will fail if it is not.

ota source code