24

I'd like to use GitHub more from the command line and less through the web.

Of course, everything related to Git repos can be done through the Git client. But I'd like to also do GitHub-specific things like creating forks or managing pull requests.

Given that GitHub seems to have a pretty comprehensive API with libraries in many languages, I was wondering if there are any good command-line clients out there to interact with GitHub?

Alireza
  • 2,319
  • 2
  • 23
  • 35
Jo Liss
  • 30,333
  • 19
  • 121
  • 170

5 Answers5

29

Have you had a look at hub or the official gh?

elmt
  • 1,604
  • 14
  • 24
  • 3
    Wow, not sure how I missed those -- I guess googling with 'github' for a keyword is a bit difficult. ^^ Thanks! – Jo Liss Jan 07 '11 at 13:11
  • 2
    Update: I've been using `hub` on a day-to-day basis for a while now, and it's the biggest time-saver. – Jo Liss May 01 '12 at 14:17
  • there is a new project which aims at saving time and more functionality: [Gush](http://gushphp.org) – cordoval Feb 01 '14 at 22:30
6

For anyone still looking for a tool to access GitHub API v3 from command line, please have a look at my client library written in ruby github_cli.

Piotr Murach
  • 547
  • 6
  • 10
2

If you just want to manage releases from the commandline, you can use github-release. It uses the recent github releases API. It's written in golang so you can just download the binary and use it without needing install anything else if you want.

DISCLAIMER: I am the author of github-release.

Aktau
  • 1,847
  • 21
  • 30
2

GitHub now have their own CLI: https://cli.github.com/

Edit: As pointed out in the comments, it's no longer in beta :D

Delphboy
  • 33
  • 7
1

If you're still not satisfied by the available CLIs like myself, check out the Gub gem.

To get Gub to submit pull-request for issue #123, you need to run the following:

$ gub start 123 This will create a new branch issue-123. Once you're done working on the issue, execute:

$ gub finish Voila!

Note: I am the author of Gub gem.

Omar Ali
  • 8,467
  • 4
  • 33
  • 58