FOTA - Firmware over the AIR

For an NB-IoT device what is the typical way of doing this.

The SARA-N2 has commands that support FOTA, can someone share example code?

Many thanks.