Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

github-cli

Build Status

This tool provides partial itneraction with GitHub and its API from the command line. This tool is far from complete or comprehensive.

Dependencies

Current Usage

If you would like command completion, look in the completion directory for your shell of choice. If you don’t see one for your shell, feel free to send a pull request adding one! Note: The current bash completion is imperfect so feel free to improve on it and send pull requests.

To get a comprehensive look at the following commands, use their help pages like below.

help

$ gh help
# Alternatively gh -h
$ gh help follow
$ gh help fork
$ gh help gists
$ gh help issues
$ gh help my
$ gh help pulls
$ gh help repos
$ gh help unfollow

follow

$ gh follow kennethreitz
$ gh follow sigmavirus24

fork

$ gh fork kennethreitz/requests
$ gh fork sigmavirus24/github3.py
$ gh fork sigmavirus24/github-cli

gists

$ gh gists
$ gh gists -u sigmavirus24
$ gh gists create -d "Public gist" file1.rb file2.rb file3.rb
$ gh gists create -p -d "Private gist" file1.py file2.py file3.py

issues

$ cd path/to/repo/on/GitHub
$ gh issues
$ gh sigmavirus24/github3.py issues
$ gh sigmavirus24/github3.py issues 48
$ gh issues 48 close
$ gh issues 48 reopen
$ gh issues 48 comment
$ gh issues 48 comments

my

$ gh my notifications
$ gh my dashboard
$ gh my issues
$ gh my stars
$ gh my profile

pulls

$ cd path/to/repo/on/GitHub
$ gh pulls
$ gh pulls 48 merge
$ gh pulls 48 close
$ gh pulls 48 comments
$ gh pulls create -h
$ gh pulls create -t "Pull Request Title" kennethreitz:master develop

repos

$ gh repos
$ gh repos create new_repo
$ gh repos -o orgname create new_repo

unfollow

$ gh unfollow sigmavirus24

License

GPLv3

0.1.0 xxxx-xx-xx

First version includes the ability to:

  • follow/unfollow a user

  • create a gist

  • (create/close/reopen/comment on/list comments on) an issue

  • create/list/fork repositories

  • print out your dashboard, notifications, stars, and issues

  • (create/close/reopen/merge) pull requests

Metadata

Release files for gh-cli 0.1.b

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gh-cli 0.1.b
File Size Uploaded
gh-cli-0.1.b.tar.gz 25.6 kB Details

Release files / gh-cli-0.1.b.tar.gz

Download URL gh-cli-0.1.b.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
536284b5ee1c824fb84565e0d7a7bc53908c8889c92c4304d970c0e16a87cf25
BLAKE2b-256 checksum
How to use checksums
3c82e73762027a10974ec4df95c59b46e8e65e2f3bbd6b08c65a20f8579f39e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.b This release

1 release file

0.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page