Github API from the command line

This package allows you to perform GitHub actions on your shell scripts.

$ bpkg install github


This is how you’d use it via command-line. Note that to use some commands you need to authenticate first.

# Authentication
$ github auth jwerle
Enter host password for user 'jwerle':
  info: Storing access token

# Read token:
$ github token get

# Request feeds with authenticated user:
$ github request GET /feeds
  "timeline_url": "",
  "user_url": "{user}",
  "current_user_public_url": "",
  "_links": {
    "timeline": {
      "href": "",
      "type": "application/atom+xml"
    "user": {
      "href": "{user}",
      "type": "application/atom+xml"
    "current_user_public": {
      "href": "",
      "type": "application/atom+xml"

To see an example of a shell script and more info, go to the GitHub repository below.

Published: June 15 2014

blog comments powered by Disqus