M0 clone loader using ATSAMD21E

I am building a clone to the M0 using a D21E chip (32TQFP).

On a factory 328P, without installing any bootloader, I am able to burn flash and fuses direct from the SPI port.

Is this also possible on the D21E? SPI?? ICE port??? USB???

Will any of these work to upload sketches and set/reset fuses?

If not, which bootloader has the best tutorial?

Thanks

ARM micro use SWD port
See ARM documentation.