I believe this is what you’re after:
How can I convert a blueprint project to C++ project in ue5? - Development / Programming & Scripting - Epic Developer Community Forums