-
Verify that you have Go 1.13+ installed
$ go version
If
go
is 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 and install
# installs to '/usr/local' by default; sudo may be required $ make install # or, install to a different location $ make install prefix=/path/to/gh
# build the `bin\gh.exe` binary > go run script/build.go
There is no install step available on Windows.
-
Run
gh version
to check if it worked.Run
bin\gh version
to check if it worked.