cli/docs/source.md
danshearer 9b890d9a10 Reduce minimum reuqired version from 1.14 to 1.13.8. This is the version
that ships with Ubuntu 20.04 Long Term Support release and it seems to
work fine.
2020-07-04 16:14:47 +01:00

31 lines
556 B
Markdown

# Installation from source
0. Verify that you have Go 1.13.8+ installed
```sh
$ go version
go version go1.14
```
If `go` is not installed, follow instructions on [the Go website](https://golang.org/doc/install).
1. Clone this repository
```sh
$ git clone https://github.com/cli/cli.git gh-cli
$ cd gh-cli
```
2. Build the project
```
$ make
```
3. Move the resulting `bin/gh` executable to somewhere in your PATH
```sh
$ sudo mv ./bin/gh /usr/local/bin/
```
4. Run `gh version` to check if it worked.