fx flash

flash and, optionally, pave a connected device

usage: fx flash [-s <serial>] [--build|--no-build] [--pave]
  --build | --no-build    Build (or not) the required dependencies
  --pave                  Pave device after flashing (recommended)
  -s                      Serial of device you wish to flash to (only necessary
                          if multiple devices in fastboot mode)

Defaults are defined by the "incremental" feature:
   'fx --enable=incremental flash'  defaults to "--build"
   'fx --disable=incremental flash'  defaults to "--no-build"

flash source code