Skip to content

Instantly share code, notes, and snippets.

@fscm
Last active March 24, 2020 11:49
Show Gist options
  • Save fscm/63ffe7466b347c64ccff0f49a83e3649 to your computer and use it in GitHub Desktop.
Save fscm/63ffe7466b347c64ccff0f49a83e3649 to your computer and use it in GitHub Desktop.
[macOS] Install hub cli

[macOS] Install hub cli

Instructions on how to install the GitHub's command-line tool hub.

Prerequisites

macOS Command Line Tools need to be installed on your local computer.

To install the Command Line Tools run the following command:

xcode-select --install

Install

hub can be obtained here. Copy the link for the version that you want to install from there.

Get the hub archive and extract it with the following command:

curl -fsSL --retry 3 --insecure "https://github.com/github/hub/releases/download/v2.14.2/hub-darwin-amd64-2.14.2.tgz" | sudo tar xz --no-same-owner --strip-components=2 -C /usr/local/bin/ hub-darwin-amd64-*/bin

Verify

Run the following command on a terminal window:

hub --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment