ue4 package code example
Example: how to package a ue4 game outside of unreal engine
cd /D "UE4_ROOT_DIR\Engine\Build\BatchFiles"
RunUAT BuildCookRun -project=PROJECT_ROOT_DIR\PROJECT_NAME.uproject -build -cook -clientconfig=Development -NoP4 -pak -crashreporter -stage -serverplatform=Win64 -stagingdirectory=PROJECT_ROOT_DIR\Build
pause