713 B
713 B
Installation from source
- Verify that you have Go 1.14+ installed
$ go version
go version go1.14
- Clone cli into
~/.githubcli
$ git clone https://github.com/cli/cli.git ~/.githubcli
- Compile
$ cd ~/.githubcli && make
- Add
~/.githubcli/binto your $PATH for access to the gh command-line utility.
- For bash:
$ echo 'export PATH="$HOME/.githubcli/bin:$PATH"' >> ~/.bash_profile
- For Zsh:
$ echo 'export PATH="$HOME/.githubcli/bin:$PATH"' >> ~/.zshrc
- For Fish shell:
$ set -Ux fish_user_paths $HOME/.githubcli/bin $fish_user_paths
- Restart your shell so that PATH changes take effect.