Here are two ways (there may be many others)
The first one is to generate a sine wave and use it as the reference so your output voltage tracks it
The second one is to have a digitised sine wave stored in a lookup table in your controller that is stepped through at the appropriate rate.
One possible methid is to boost your input voltage to (say) 400VDC, then buck convert it to what looks like pulsed DC produced by a bridge rectifier, then use an H-bridge to invert every second pulse.
A practical version of this would combine aspects of this together for increased efficiency and lower component count.