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

715 B

Installation from source

  1. 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
  1. Compile
$ cd ~/.githubcli && make
  1. Add ~/.githubcli/bin to 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
  1. Restart your shell so that PATH changes take effect.