Put the instant pot in mode browning
Fry the onion in the butter
Add the curry and stir
Add the green beans
Fry 3min more
Add the rice, cranberry, and water
Salt
Switch the instant pot to pressure cooking 7min
At the end of cooking, do not open the instant pot and leave 10min in warm mode