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)
 --skip-verify            Skip hardware verification. This is dangerous, please be
                          sure the images you are flashing match the device. Only
                          supported with ffx
 --no-bootloader-reboot   Don't reboot bootloader after flashing firmware or
                          recovery fastboot image.

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