How to convert an Unreal Engine 5 Blueprint-only project to a C++ project using command line and compile it?

Blueprints are automatically compiled into c++, however there is an option if you right click on a BP class to “show generated header” or something like that it automatically makes the .h file