Rinse the rice in cold water for 3-4 times till it runs clear.
Drain the water from rice and keep it aside in a plate.
Make a puree of spinach leaves ,water and green chili .
Turn the saute button of the instant pot on.
When it says hot add oil to it .
Add whole spices and cumin seeds to it. Let them crackle ..
Add chopped garlic and stir it around.When it looks light brown add chopped onion to it .This will not take more than 1 minute.
Add red pepper flakes turmeric powder and stir it around once. If it looks like its sticking to the bottom cancel the button and add 1 tsp of water . Stir it once more..
Add Spinach puree and rice to it. Add garam masala powder to it ..
Level the rice nicely .Scrape from all the sides.
Cover the Instant pot with lid.
Cook on high pressure for 5 minutes.Keep the ven in seal in position .
After 5 minutes let it release the steam naturally .
Open the lid the fluff it with a fork .
Enjoy with some raita or curry .