cli/docs/source.md
Billy Griffin f32235aa08 Move docs to docs folder
The docs were just hanging out in the top level repo and we thought it'd be nicer to start to organize them together.
2020-03-10 12:52:01 -06:00

37 lines
715 B
Markdown

# Installation from source
0. Verify that you have Go 1.13+ installed
```
$ go version
go version go1.13.7
```
1. Clone cli into `~/.githubcli`
```
$ git clone https://github.com/cli/cli.git ~/.githubcli
```
2. Compile
```
$ cd ~/.githubcli && make
```
3. Add `~/.githubcli/bin` to your $PATH for access to the gh command-line utility.
* For **bash**:
~~~ bash
$ echo 'export PATH="$HOME/.githubcli/bin:$PATH"' >> ~/.bash_profile
~~~
* For **Zsh**:
~~~ zsh
$ echo 'export PATH="$HOME/.githubcli/bin:$PATH"' >> ~/.zshrc
~~~
* For **Fish shell**:
~~~ fish
$ set -Ux fish_user_paths $HOME/.githubcli/bin $fish_user_paths
~~~
4. Restart your shell so that PATH changes take effect.