How to compile a project from the command line

Hi, I’m learning Unreal and for my test project I’m using a git repository to simulate an environment as professional as possible and I was going to make a script to generate the project files after the “git clone” and then the C++ files would be compiled using another command so that everything is ready to use without doing all these processes by hand.

My command to generate the project files is:

dotnet "E:\UnrealEngine\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -projectfiles -project="<path-poject>.uproject" -game -rocket -progress

And the way I found to compile using commands without having to use Visual Code is:

dotnet "E:\UnrealEngine\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -project="<path-poject>.uproject" -Build -platform=Win64 -configuration=Development

But I get the following error (that’s the only thing that’s shown as output):

No platforms specified for target

What am I doing wrong?

Thanks in advance

Hi @kafok, welcome to community!

You can watch this video, it will give you a good insight about how to generate files, build editor/game etc.

Also I recommend other videos of him if you want to deep dive to understand details.

Oh thanks, I will take a look as early as I can, but I see that it is UE4 and I have the problem with UE5.4 and the first command that I gave works in UE5, but I saw that is so different of UE4