The GitHub CLI (gh repo clone)

The GitHub CLI (gh repo clone)

Chris Achinga
·Nov 1, 2020·

4 min read

Subscribe to my newsletter and never miss my upcoming articles

Play this article

The GitHub CLI (gh repo clone)

Image for post

GitHub CLI beta version was released a while ago, and it comes with really cool features. I have been using and interacting with GitHub without necessarily visiting the website, that’s fun right.

An alternative to using GitHub CLI is HUB, which was there before GitHub cli was introduced.

GitHub CLI is an open-source project, here on GitHub.

I had an article before on using GitHub CLI and its commands, so this is kind of like an update because the cli is up on version 1.x.x right now, better to stay on the know/updated. To get the latest releases of the cli

Image for post

Image for post

Everything you need to know about the cli is on their site,


GitHub CLI has to be installed on your device for you to use it.

View installation procedures based on your operating system:

Installing GitHub CLI


With the cli, you can create repositories, pull requests, issues, clone repos, and much more.

If I were to write on every usage gh cli has to offer, this would have been one of the longest and probably most boring technical articles, so I’ll break them down and make a mini-article-series if that makes sense.

gh repo clone

This is one of the commands GitHub cli comes with. The gh clone works in a similar way as the popular git command, git clone.

Note that git and GitHub cli are two different things, but the gh clone and git clone perform a similar function altogether and have a similar syntax.

to use the command, browse into your favorite GitHub project, and clone it using GitHub cli, easy and fun.

For me, I’ll go to one of my repos, Click on the green button code, a dropdown appears, click on the Github CLI tab and copy the command; gh repo clone ChrisAchinga/javascript

Image for post

Image for post

Simple as that and you are done.

A simple start to becoming a GitHub cli master!

Share this