Here are some simple steps to get Pharo ready from the command line. The script assumes that you have a bin folder in your home directory.
The following script downloads the stable vm version of Pharo 80. Check the web page https://get.pharo.org/64/ to get the possible choices.
mkdir bin
cd bin
curl https://get.pharo.org/64/vm80 | bash
This script creates two scripts, pharo-ui and pharo-vm both using the contents of the Pharo folder that is also created.
Once installed you can execute pharo as follows:
./pharo-ui Pharo8.image
If you do not want Pharo displaying a user interface as a pop-up, you can invoke it as follows:
./pharo Pharo8.image