How to build a game from the terminal in macosx

Hi I want to find the command to build my game project from terminal , essentially I want to do what the Compile button is doing inside the editor.

I tried to find instructions online , zero documentation about it, confusing answers.

If you look in /Users/Shared/UnrealEngine/4.xx/Engine/Build/BatchFiles

You will find

You should be able to use this documentation with that bash script

Thanks for the help indeed I was successful building my game using