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

**URL:** <https://forums.unrealengine.com/t/how-to-convert-an-unreal-engine-5-blueprint-only-project-to-a-c-project-using-command-line-and-compile-it/1996154>\
**Category:** Programming & Scripting\
**Tags:** commandlet, unreal-engine, question\
**Created:** [August 29, 2024, 1:53am UTC](https://forums.unrealengine.com/t/how-to-convert-an-unreal-engine-5-blueprint-only-project-to-a-c-project-using-command-line-and-compile-it/1996154 "2024-08-29T01:53:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramedons](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ramedons](https://forums.unrealengine.com/u/Ramedons)\
**Post date:** [August 29, 2024, 1:53am UTC](https://forums.unrealengine.com/t/how-to-convert-an-unreal-engine-5-blueprint-only-project-to-a-c-project-using-command-line-and-compile-it/1996154/1 "2024-08-29T01:53:51Z")

</div>

I’m looking for guidance on how to convert a Blueprint-only project in Unreal Engine 5 to a C++ project using the command line. Also, how can I compile the project afterward? I want to put these into a bat file.

Any help or suggestions would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![doctorpepperdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doctorpepperdan](https://forums.unrealengine.com/u/doctorpepperdan)\
**Post date:** [August 29, 2024, 3:30am UTC](https://forums.unrealengine.com/t/how-to-convert-an-unreal-engine-5-blueprint-only-project-to-a-c-project-using-command-line-and-compile-it/1996154/2 "2024-08-29T03:30:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ramedons](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ramedons](https://forums.unrealengine.com/u/Ramedons)\
**Post date:** [August 29, 2024, 3:58am UTC](https://forums.unrealengine.com/t/how-to-convert-an-unreal-engine-5-blueprint-only-project-to-a-c-project-using-command-line-and-compile-it/1996154/4 "2024-08-29T03:58:49Z")

</div>

I mean I want to convert the blueprint-only project into a C++ project. In the editor, I can do this by adding a new C++ class using the toolbar, but now I want to achieve this via the command line instead of opening the editor. And then compile the project using command line after this.

---

<div class="post-metadata">

**Author:** ![doctorpepperdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doctorpepperdan](https://forums.unrealengine.com/u/doctorpepperdan)\
**Post date:** [August 29, 2024, 5:54am UTC](https://forums.unrealengine.com/t/how-to-convert-an-unreal-engine-5-blueprint-only-project-to-a-c-project-using-command-line-and-compile-it/1996154/5 "2024-08-29T05:54:24Z")

</div>

Do you mean like launch the project from visual studio?

---

<div class="post-metadata">

**Author:** ![Ramedons](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ramedons](https://forums.unrealengine.com/u/Ramedons)\
**Post date:** [August 29, 2024, 6:14am UTC](https://forums.unrealengine.com/t/how-to-convert-an-unreal-engine-5-blueprint-only-project-to-a-c-project-using-command-line-and-compile-it/1996154/6 "2024-08-29T06:14:28Z")

</div>

I solved the problem now. It’s actually just one line of command like this

```auto

D:\UE_5.3\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe -projectfiles -project="D:\BlueprintTrans\MyProject\MyProject.uproject" -game -rocket -progress

```

I created some source files under the directory and this command works. Thanks for your reply! 😄

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 28, 2024, 6:14am UTC](https://forums.unrealengine.com/t/how-to-convert-an-unreal-engine-5-blueprint-only-project-to-a-c-project-using-command-line-and-compile-it/1996154/7 "2024-09-28T06:14:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
