Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 801 Bytes

source.md

File metadata and controls

39 lines (28 loc) · 801 Bytes

Installation from source

  1. Verify that you have Go 1.13+ installed

    $ go version

    If go is not installed, follow instructions on the Go website.

  2. Clone this repository

    $ git clone https://github.com/cli/cli.git gh-cli
    $ cd gh-cli
  3. Build and install

    Unix-like systems

    # installs to '/usr/local' by default; sudo may be required
    $ make install
    
    # or, install to a different location
    $ make install prefix=/path/to/gh

    Windows

    # build the `bin\gh.exe` binary
    > go run script/build.go

    There is no install step available on Windows.

  4. Run gh version to check if it worked.

    Windows

    Run bin\gh version to check if it worked.