Check out example codes for "start blender from terminal". It will help you in understanding the concepts better.

Code Example 1

echo "alias blender=/Applications/Blender.app/Contents/MacOS/blender" >> ~/.bash_profile

Learn ReactJs, React Native from akashmittal.com