How to add ethos ewbf miner functions --api and -r 0

how to add auto restart ethos when crash any gpu and monitor via --api but i tried to put this code but not possible,
please help how to use these function in ethos
waiting for replay

autoreboot set to a number (autoreboot 3), allow rigs to autoreboot if they soft crash (max of 3 reboots, run clear-thermals to reset counter)