Select the saute setting on your Instant Pot and add the olive oil.
Once the olive oil is hot, add the onion and garlic and saute until the onions become translucent. Turn off the sauté setting.
Next, add in the chicken broth, chicken cubes, and seasonings. Stir everything together to combine and get any browned bits off the bottom of the pot.
Put the lid on the pot, lock it, and make sure that the steam release knob is in the sealing position.
Select Manual and set the pot to cook for 10 minutes on high pressure.
While the soup is cooking, prepare the gnocchi according to package directions.
Allow the pressure cooker to do a natural release for 10 minutes and then you can perform a quick release to let the remaining pressure out.
Use two forks to shred the chicken carefully.
Add the cooked gnocchi to the pot and stir.
Distribute the soup into bowls and sprinkle with cheese before serving.