5 votes

Looking for a GitHub cli tool

And no, I'm not talking about git. I'm looking for a tool that I can use in scripts to automate non-git tasks on GitHub such as creating new repositories, drafting releases, uploading assets to a release, etc.

I started dipping my toes into gh, GitHub's official cli tool, but when I created a repository it immediately cloned it, which is not what I want. I know I can just rm -rf the repo but ideally the tool I use would do only what I tell it and nothing more.

Reading the docs for hub, it might do what I want, although I have some reservations about the project after reading this post written by the developer: https://mislav.net/2020/01/github-cli/

I've also come across git-hub, which doesn't support creating repos AFAICT, and git-spindle, which doesn't support uploading assets.

Are there any other command line GitHub clients I should consider?

Which one do you use? What's your experience with it been like?

4 comments

  1. [4]
    tvl
    Link
    I know that you had a bad experience with gh, but I really do think it is the best one.

    I know that you had a bad experience with gh, but I really do think it is the best one.

    7 votes
    1. [3]
      teaearlgraycold
      Link Parent
      I agree. OP I might recommend just forking gh to remove that one feature (or making a PR to add a flag for the functionality you want).

      I agree. OP I might recommend just forking gh to remove that one feature (or making a PR to add a flag for the functionality you want).

      6 votes
      1. [2]
        DMBuce
        Link Parent
        Thanks, I appreciate your and @tvl's recommendations. :) I gave gh another shot, though, and kept tripping over weird behavior. After trying hub, it does what I want and seems much nicer. So I'm...

        Thanks, I appreciate your and @tvl's recommendations. :)

        I gave gh another shot, though, and kept tripping over weird behavior. After trying hub, it does what I want and seems much nicer. So I'm gonna go with that for now.

        3 votes
        1. tvl
          Link Parent
          Glad you found something that works!

          Glad you found something that works!

          2 votes