You can download macOS Sonoma from the App Store on your Mac or directly update your Mac to Sonoma in the Apple menu > System Preferences (or System Settings) > Software Update. Moreover, you can also download Sonoma from the Apple Support website.