The following command verifies that the firmware on the device with the <serial_number> matches the HEX file at the path/to/firmware.hex file path:
nrfutil device fw-verify --firmware path/to/firmware.hex --serial-number <serial_number>
If the contents match, the command completes without errors. If they differ, the command reports a verification failure.
Tip
Run nrfutil device list to find the serial number of the target device.