Skip to content

Clarify install steps for various OS #287

Closed

Description

@tierninho

macOS:

For the installation, specifically macOS, we do not mention Homebrew as a prerequisite for the installation. Xcode Install Tools are also required, but Homebrew takes care of that, but perhaps because I have Xcode already?

Running brew install github/gh/gh without Homebrew results in command not found error.

Also, there is no mention of the SSH or HTTPS authentication, nor the subsequent browser authentication.

I am not sure what else I am missing?

Linux:

If authenticating with a personal access token (PAT), you need to add this to your gh config.

~/.config/gh/config.yml

yaml
github.com:
  - user: $GITHUB_USERNAME
    oauth_token: $PERSONAL_ACCESS_TOKEN

Windows:

Scoop...

Uninstalling

Directions to do an uninstall would be great too

Minimum req's

Each OS should have the following:

  • dependencies, prerequisites for installing
  • instructions for installing
  • instructions for authenticating
  • instructions for upgrading
  • instructions for uninstalling

Activity

  1. added and removed on Jan 31, 2020
  2. changed the title [-]Clarify install steps for Mac[/-] [+]Clarify install steps for various OS[/+] on Jan 31, 2020
  3. tierninho commented on Feb 4, 2020

    @tierninho
    ContributorAuthor

    Scoop ref: #298

  4. tierninho commented on Feb 4, 2020

    @tierninho
    ContributorAuthor

    Updated Windows with the Scoop install method successfully, however I ran into some issues worth noting in our install guide or a "common problems" doc.

    The install command scoop install curl on Scoop did not work, which led me to a this error and workaround:

    Error:

    The term `scoop' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify
    that the path is correct and try again.
    

    Workaround in Powershell (as admin):

    • Enabled powershell for current user : set-executionpolicy remotesigned -s currentuser
    • Installed scoop : iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

    Scoop successfully installed 🎉

    I then ran the two commands from our install guide:
    scoop bucket add github-gh https://github.com/cli/scoop-gh.git
    scoop install gh

    and everything is working with gh on Windows now.

  5. waldyrious commented on Feb 13, 2020

    @waldyrious
    Contributor

    It's worth mentioning that Homebrew also works for Linux systems. The formula can be found in the Homebrew/linuxbrew-core repo.

  6. madhavtummala commented on Feb 15, 2020

    @madhavtummala

    brew install github doesn't work.
    brew install gh works

  7. mwichmann commented on Feb 17, 2020

    @mwichmann

    To the Linux instructions above, note that in #479 @mislav writes:

    Note that we don't really support Personal Access Tokens,

    so those don't seem to be the right instructions.

  8. mislav commented on Feb 19, 2020

    @mislav
    Contributor

    Updating the package on Fedora might require uninstall+reinstall: #498

  9. mislav commented on Feb 27, 2020

    @mislav
    Contributor

    @tierninho Are the installation instructions for various OS still unclear?

  10. waldyrious commented on Feb 27, 2020

    @waldyrious
    Contributor

    @mislav I think it would be worth having the Homebrew installation instructions in a separate section rather than under macOS exclusively, since Homebrew now has support for Linux as well.

  11. tierninho commented on Feb 27, 2020

    @tierninho
    ContributorAuthor

    @mislav I would say yes until these are outlined:

    Each OS should have the following:
    dependencies, prerequisites for installing
    instructions for installing
    instructions for authenticating
    instructions for upgrading
    instructions for uninstalling

  12. F4NT0 commented on Apr 24, 2020

    @F4NT0

    Updating the package on Fedora might require uninstall+reinstall: #498

    So, use linux update doesn't help then, i will need to reinstall all again

  13. l3ender commented on Sep 18, 2020

    @l3ender

    It would also be nice if zip install options were mentioned for Windows. #1740 (comment).

  14. mislav commented on Oct 1, 2020

    @mislav
    Contributor

    Closing since our installation/upgrading options are well documented now for various OS: https://github.com/cli/cli#installation

  15. waldyrious commented on Oct 2, 2020

    @waldyrious
    Contributor

    @mislav was it intentional to leave the Homebrew option out of the Linux installation docs?

  16. mislav commented on Oct 7, 2020

    @mislav
    Contributor

    @waldyrious No! You are welcome to put it back 🙇

  17. waldyrious commented on Oct 11, 2020

    @waldyrious
    Contributor

    @mislav thanks for the confirmation — I've just submitted #2156 to address that.

  18. added a commit that references this issue on Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions