Bring a large pot of salted water to a boil. Add the spaghetti and cook until al dente, about 8 minutes.
Meanwhile, heat the olive oil in a large skillet over medium heat. Add the onion and cook until softened and lightly browned, about 5 minutes. Add the garlic and red pepper flakes and cook for 1 minute more.
Add the white wine to the skillet and cook until almost completely evaporated, about 3 minutes.
Add the heavy cream and Parmesan cheese and stir to combine. Simmer until the sauce is thickened and creamy, about 5 minutes.
Drain the spaghetti and add it to the skillet. Toss to coat the spaghetti with the sauce.
Serve the spaghetti garnished with parsley.
Interesting Facts
Garlic is a powerful immune-boosting food and is also a great source of antioxidants.
Caramelized onions are a great way to add sweetness and depth of flavor to any dish.
Heavy cream adds richness and creaminess to this dish, making it extra comforting and delicious.