chore: make Prettier
[webi-installers/.git] / gh / README.md
1 ---
2 title: GitHub CLI
3 homepage: https://github.com/cli/cli
4 tagline: |
5   `gh` is GitHub on the command line.
6 ---
7
8 To update or switch versions, run `webi gh@stable` (or `@v1`, `@beta`, etc).
9
10 ## Cheat Sheet
11
12 > `gh` is cross-platform Github command-line. You can perform pull requests
13 > create-repo, isssues, fork and other GitHub functionalities right from your
14 > terminal while Working with Git and your code.
15
16 Installation:
17
18 - For macOS and Windows
19   [macOS/Windows](https://github.com/cli/cli/blob/trunk/README.md)
20 - For linux Installation on specific distribution
21   [linux](https://github.com/cli/cli/blob/trunk/docs/install_linux.md)
22
23 ### Authentication
24
25 Authenticate with your Github account.
26
27 ```bash
28 gh auth login
29 ```
30
31 ### Pull Request
32
33 Create a pull request.
34
35 ```bash
36 gh pr create -t <title> -b <body>
37 ```
38
39 Check out pull requests locally.
40
41 ```bash
42 gh pr checkout
43 ```
44
45 Check the status of yout pull requests.
46
47 ```bash
48 gh pr status
49 ```
50
51 View Your pull requests' checks.
52
53 ```bash
54 gh pr check
55 ```
56
57 ### Issues
58
59 View and filter a repository's open issues.
60
61 ```bash
62 gh issue list
63 ```
64
65 ### Release
66
67 Create a new release.
68
69 ```bash
70 gh release create 0.1
71 ```
72
73 ### Repo
74
75 View repository READMEs.
76
77 ```bash
78 gh repo view
79 ```
80
81 ### Create Shortcut
82
83 Create Shortcut for a gh command.
84
85 ```bash
86 gh alias set bugs 'issue list --label="bugs"'
87 ```