- Go to the release page of cli/cli, and get the compatible build for Perlmutter. The latest version as of July 1, 2024 is GitHub CLI 2.52.0 linux amd64
- Untar the file, and move the single binary executable
gh
to path which is included in the list of the envPATH
, or add the path to it in your$HOME/.bashrc.ext
; - Similarly, move the
share/man
subdiretory into a place already pointed to by the envMANPATH
, or the new path to$HOME/.bashrc.ext
; - Add bash (or other shell) completion by adding
eval "$(gh completion -s bash)"
into$HOME/.bashrc.ext
. After opening a new terminal, you would be able to test the installation withwhich gh
,man gh
and use thetab
key for sub-command completion (tab once to auto complete the command, tab twice to list all possible completions).
My additions to $HOME/.bashrc
look lik