Google is committed to advancing racial equity for Black communities. See how.

fx flash

flash and, optionally, pave a connected device

usage: fx flash [-s <serial>] [--pave]
  -s        Device you wish to flash to (only necessary if multiple
            devices in fastboot mode)
  --pave    Pave device after flashing (recommended)

flash source code