Read from and write to on-board SPI flash

How do I write to and read from the Edge-V’s on-board SPI flash memory on Ubuntu? For example, if I want to backup the SPI flash memory’s contents to a file, what command do I run?