unity enviroment tools and script builder
Access the Unity menu -> MyBuildTools -> Select Build Platform
/Path/To/Unity -quit -batchmode -executeMethod AndroidBuilder.TestBuild
/Path/To/Unity -quit -batchmode -executeMethod iOSBuilder.ProductionBuild
/Path/To/Unity -quit -batchmode -executeMethod iOSBuilder.TestBuild