Building Unreal Projects from Command Line

Hi,

I am trying to figure out how can I use Command Line to initiate a build. I am trying to have a Jenkins continuous integration server build the project every time a new change is pushed to remote repository, so I am guessing I would need some commands for the server to run Unreal Build Tool or Unreal Front End?

Thanks,

You can do this using the RunUAT tool which is in the /Engine/Build/BatchFiles in your install. There’s a lot of information on how to do this on the wiki, but a simple example to build the client:

RunUAT BuildCookRun -project="full_project_path_and_project_name".uproject -noP4 -platform=Win64 -clientconfig=Development -serverconfig=Development -cook -maps=AllMaps -compile -stage -pak -archive -archivedirectory="Output Directory"

See the wiki post on How to package your game with commands for more information.

2 Likes

Thanks a lot for the guidance! I will start with the wiki documentation.

Shockingly, the link[s] have moved in the last 8 years. If you’re around and can update them, that’d be great.

I searched around a bit and couldn’t find it myself. I’m guessing things have changed enough to make “how to package your game with commands” outdated and it was pulled.

Here is an archived version of the old wiki. And this one is the new docs page. It talks about the RunUAT tool under the “Command Line” section.