fx ota

perform a system OTA on a connected device

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

  --build | --no-build   Build (or not) the 'updates' target before initiating OTA.
  --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