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