Build automation - build machine

I have put together a script that updates all of the code and content from source control and then builds it. The final piece of the puzzle is the packaging/deployment part.

I want to build packages just like I can in the editor - but I want to do that from the commandline. I can see that there is a “Cook” commandlet for cooking content - but there’s no matching “Package” commandlet.

How do I do this?

There is a wiki page with details for doing that here:

I get an error when trying to build my blueprints-only project:
"C:\Program Files\Epic Games\UE_4.20\Engine\Build\BatchFiles\RunUAT.bat" Build -project="C:\myproj.uproject" -platform=Win64

ERROR: Failed to build "C:\Program Files\Epic Games\UE_4.20\Engine\Source\Programs\AutomationTool\Scripts\UAT.proj": C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1656,5): error MSB4036: The "GetReferenceNearestTargetFrameworkTask" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin" directory. [C:\Program Files\Epic Games\UE_4.20\Engine\Source\Programs\AutomationTool\AllDesktop\AllDesktop.Automation.csproj]