Build the Source Code
To compile the source code of Sentinel Hub into a binary, two essential steps are necessary: installing Go and executing the build process.
Install Go
Install Go by following instructions there.
Verify the installation by typing go version
in your terminal.
go version
You should receive this output: go version go1.xx.x darwin/amd64
Build Sentinel
In order to build Sentinel you need the source code. Either download the source of a release or clone the git repository and make sure you always download the latest version.
Build Sentinel from the source code:
git clone https://github.com/sentinel-official/hub.git "${HOME}/sentinelhub"
cd "${HOME}/sentinelhub"
git checkout vX.X.X # always make sure it's the latest version
make install
sudo ln -s "${GOBIN}/sentinelhub" /usr/local/bin/sentinelhub
After building, you should see a new executable file /usr/local/bin/sentinelhub
.