Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

GitHub CLI 1.0 Launched (Rich Front-End Engineering)


May 31, 2021 Article blog


Table of contents


The article comes from the public number: front-ender

GitHub officially released GitHub CLI 1.0

GitHub CLI adds GitHub to your terminal. It reduces environment switching, allowing you to focus on writing scripts and creating your own workflows more easily.

Users have been using GitHub CLI since the beta version of GitHub CLI was released earlier this year

  • More than 250,000 request pulls were created
  • More than 350,000 mergers were performed
  • More than 20,000 issues were created

GitHub CLI is available on Windows, macOS and Linux.

Obviously, developers can operate GitHub's APIs directly from the CLI, which undoubtedly improves processing efficiency!

Download the address

Via the official website: cli.github.com.

 GitHub CLI 1.0 Launched (Rich Front-End Engineering)1

Common Api commands

  • gh release create
  • gh repo view
  • gh alias set
  • gh issue list
  • gh pr status
  • gh pr checkout
  • gh pr create
  • gh pr checks

With these commands, you can actually do a lot of interesting things, such as doing your own warehouse management platform, through which you can manage all the warehouses that your company hosts on GitHub, including the creation of warehouses, editing, permission allocation, and so on. In fact, there are many scenes to do!

More Api instructions

cli.github.com/manual/

How do I use it?

login

When the installation is complete, enable the command line directly.

Then run gh auth login to authenticate your login. I followed the guidelines and soon logged in.

 GitHub CLI 1.0 Launched (Rich Front-End Engineering)2

 GitHub CLI 1.0 Launched (Rich Front-End Engineering)3

use

 GitHub CLI 1.0 Launched (Rich Front-End Engineering)4

Officials have given some basic command diagrams, such as,

List of issues:

 GitHub CLI 1.0 Launched (Rich Front-End Engineering)5

Create a Pull Request:

 GitHub CLI 1.0 Launched (Rich Front-End Engineering)6

Changes to the comparison PR:

 GitHub CLI 1.0 Launched (Rich Front-End Engineering)7

Old drivers, don't use it quickly???

That's what W3Cschool编程狮 has to say about GitHub CLI 1.0's official release of Rich Front-End Engineering.