-
Verify that you have Go 1.13+ installed
$ go version
If
gois not installed, follow instructions on the Go website. -
Clone this repository
$ git clone https://github.com/cli/cli.git gh-cli $ cd gh-cli -
Build the project
$ make -
Move the resulting
bin/ghexecutable to somewhere in your PATH$ sudo mv ./bin/gh /usr/local/bin/
-
Run
gh versionto check if it worked.