Roasting: Preheat the oven to 400°F (200°C). Cut the spaghetti squash in half, remove the seeds, and brush the cut sides with olive oil. Season with salt, pepper, and any desired herbs or spices. Place the halves cut side down on a baking sheet and roast for 35-50 minutes, until the flesh is tender and easily separates into strands when scraped with a fork.
Baking: Preheat the oven to 375°F (190°C). Cut the squash in half and remove the seeds and fibrous center. Place the halves cut side up in a baking dish, add a small amount of water to the dish if desired, and season the flesh with olive oil, butter, herbs, or spices. Bake for 40-60 minutes, until the flesh is tender. Allow the squash to cool slightly, then scrape the flesh into strands with a fork.
Steaming: Cut the spaghetti squash into large pieces and remove the seeds. Place the pieces in a steamer basket over simmering water and steam for 20-30 minutes, until the flesh is tender. Allow the squash to cool slightly, then use a fork to scrape the cooked flesh into strands.
Microwaving: Pierce the whole squash several times with a fork and microwave for 3-5 minutes to soften it slightly before cutting. Cut the squash in half, remove the seeds, and place the halves cut side down in a microwave-safe dish with a small amount of water. Microwave for 8-15 minutes, depending on the size of the squash and the strength of the microwave, until the flesh is tender. Allow it to cool slightly before scraping it into strands.
Sautéing: Cook the spaghetti squash using another method first, then scrape the flesh into strands. Heat olive oil or butter in a skillet over medium heat and add garlic, onions, herbs, or other aromatics. Add the squash strands and sauté for 2-4 minutes, tossing gently until heated through and lightly seasoned. Avoid overcooking, as the strands can become soft and watery.