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

fx flash-remote

Remotely build, fetch and flash

usage: fx flash-remote HOST [DIR] [--no-flash] [--no-build]

Connect to HOST, run a build using fx from DIR, fetch the artifacts and
start the flash.

 --no-build    do not build, just pull artifacts already present
 --no-flash    do not start the fastboot, just pull the artifacts
  -s           Serial of device you wish to flash to (only necessary if multiple
               devices in fastboot mode)

 HOST          the hostname to connect to
 DIR           defaults to ~/fuchsia, the path to the FUCHSIA_DIR on HOST

flash-remote source code