To update your iPhone to iOS 17, go to Settings > General > Software Update, and follow the on-screen instructions.