cli/docs/source.md
2020-05-30 10:03:42 -03:00

560 B

Installation from source

  1. Verify that you have Go 1.14+ installed

    $ go version
    go version go1.14
    
    

    If "go" is not installed, follow instructions on "go official Page".

  2. Clone this repository

    $ git clone https://github.com/cli/cli.git gh-cli
    $ cd gh-cli
    
  3. Build the project

    $ make
    
  4. Move the resulting bin/gh executable to somewhere in your PATH

    $ sudo mv ./bin/gh /usr/local/bin/
    
  5. Run gh version to check if it worked.