How do I package a project from the command line in MacOS, for MacOS?

I’ve been able to find almost no information on this subject. I’ve tried to run:

Engine/Build/BatchFiles/RunUAT.sh -ScriptsForProject=/Users/akulikov/projects/unreal/unreal_viz/unreal_viz.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -pr    oject=/Users/akulikov/projects/unreal/unreal_viz/unreal_viz.uproject -cook -stage -archive -archivedirectory=/Users/akulikov/Desktop/temp -package -client config=Development -ue    4exe=UE4Editor -clean -pak -prereqs -targetplatform=Mac -build -CrashReporter -utf8output

And get this error: link text

The build succeeds when done from the package project menu.

Hello akulikov,

It looks like the main error here is:

AutomationTool.AutomationException: Client target not found!

Are you using a Binary version of the editor (from the Epic Games Launcher) or a source built engine (from Github)? If it is the former, you’ll need to change the “-client” part of your command to “-development” or any other configuration supported by the Binary editor. The client configuration is only available in the source built engine. If you are using a source built engine, please let me know and I’ll look into this further.

Works perfectly! Thank you.