I prefer platformio over the arduino IDE because it automatically does library dependencies and has lots of other goodness. To build and install to a connected device just do: pio run