Add rice, milk, sugar, salt, and butter to the Instant Pot and stir to combine.
Lock the lid and set to cook on high pressure for 10 minutes.
Allow natural pressure release for 10 minutes, then release remaining pressure manually.
Stir in vanilla extract, cinnamon, and raisins if using.
Let sit for 5–10 minutes to thicken before serving warm or chilled.