Clone the Grav repository from GitHub to a folder in the webroot of your server, e.g. ~/webroot/grav. Launch a terminal or console and navigate to the webroot folder:
cd ~/webroot
git clone -b master https://github.com/getgrav/grav.git
Install vendor dependencies via composer: