Packing ERROR: No target name was specified on the command-line

Hi, im running into this error while packaging my project

UATHelper: Packaging (Windows (64-bit)): Running: C:\Users\HP\Documents\Unreal Engine\UE_4.27.2\Engine\Binaries\DotNET\UnrealBuildTool.exe test Win64 Development -Project="I:\Unreal project\test\test.uproject"  "I:\Unreal project\test\test.uproject" -NoUBTMakefiles  -remoteini="I:\Unreal project\test" -skipdeploy -Manifest="C:\Users\HP\Documents\Unreal Engin
e\UE_4.27.2\Engine\Intermediate\Build\Manifest.xml" -NoHotReload -log="C:\Users\HP\Documents\Unreal Engine\UE_4.27.2\Engine\Programs\AutomationTool\Saved\Logs\UBT-test-Win64-Development.txt"
UATHelper: Packaging (Windows (64-bit)):   ERROR: No target name was specified on the command-line.
PackagingResults: Error: No target name was specified on the command-line.**
UATHelper: Packaging (Windows (64-bit)): Took 0.6508656s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Users\HP\Documents\Unreal Engine\UE_4.27.2\Engine\Programs\AutomationTool\Saved\Logs\UBT-test-Win64-Development.txt)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

image

Im setting up dedicated server, i cannot package my project using ‘test’ build target but i can package ‘testServer’ build target. I can run the game on the server normally if i start the game in PIE mode. But I want to package the game so i can test run it with my friends. I have stuck on it for quite a while, can anyone help me on this?

3 Likes

The project name cannot be “test”. It’s a reserved keyword. Hope it help someone

15 Likes

Very helpful. Thank you.

4 hours struggling with an unknown error till I found this, thank you!