Skip to content

Commit 98adce5

Browse files
committed
added cli
1 parent f5484cc commit 98adce5

File tree

1 file changed

+73
-18
lines changed

1 file changed

+73
-18
lines changed

blog/github-cli-agent/index.md

Lines changed: 73 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ canonical_url:
1313
<!-- truncate -->
1414

1515
GitHub Copilot CLI is now in public preview
16-
GitHub bought power of GitHub Copilot coding agent directly to your terminal, with GitHub Copilot CLI, you can work locally and synchronously with an AI agent that understands your code and GitHub context in depth.
16+
GitHub bought power of GitHub Copilot coding agent directly to your terminal, with [GitHub Copilot CLI](https://github.com/features/copilot/cli?utm_source=changelog-amp-linkedin&utm_campaign=agentic-copilot-cli-launch-2025), you can work locally and synchronously with an AI agent that understands your code and GitHub context in depth.
1717

1818
---
1919

@@ -33,6 +33,8 @@ GitHub Copilot CLI is now in `public preview`, and it’s designed to bring AI-p
3333
-**Full control** – Every action requires your explicit approval.
3434

3535
Plus, extend Copilot CLI's capabilities and context through **custom MCP servers**.
36+
Agent-powered, GitHub-native
37+
Execute coding tasks with an agent that knows your repositories, issues, and pull requests — all natively in your terminal.
3638

3739

3840
---
@@ -86,13 +88,19 @@ copilot --banner
8688
```
8789

8890
Authenticate with your GitHub account:
89-
91+
If you're not currently logged in to GitHub, you'll be prompted to use the `/login` slash command. Enter this command and follow the on-screen instructions to authenticate.
9092
```bash
9193
/login
9294
```
9395

9496
Or authenticate using a **Personal Access Token (PAT):**
9597

98+
You can also authenticate using a fine-graned PAT with the "Copilot Rrequests" permission enabled.
99+
Visit `https://github.com/settings/personal-access-tokens/new`
100+
Under `Permissions`," click add `permissions` and select `Copilot Requests`
101+
Generate your token
102+
Add the token to your environment via the environment variable GH_TOKEN or GITHUB_TOKEN.👇🏻
103+
96104
```bash
97105
# Linux/macOS
98106
export GH_TOKEN=your_token_here
@@ -106,6 +114,11 @@ setx GH_TOKEN your_token_here
106114
## 🖥️ Usage
107115
Once you installed run copilot on your terminal, Image of the splash screen for the Copilot CLI. The usage is pretty straight forward you can use the arrow keys to navigate to proceed cancel instruction etc.
108116

117+
Each time you submit a prompt to GitHub Copilot CLI, your monthly quota of premium requests is reduced by one. For information about premium requests,
118+
`https://docs.github.com/en/copilot/concepts/billing/copilot-requests`
119+
120+
121+
109122
![Command to start](./images/02-starting-copilot.png)
110123

111124
Launch Copilot CLI in a project folder:
@@ -139,20 +152,50 @@ Ctrl + C (twice)
139152

140153
Now lets get start with development, here fork this repo and activate GitHub CLI and enter the below bash commands. [Website](https://github.com/recodehive/recode-website)
141154

142-
### Development
155+
### List of all commands in CLI
156+
I have linked the offical website repo to log any bugs or do direct PR. [GitHub CLI repo](https://github.com/github/copilot-cli?utm_source=changelog-amp-linkedin&utm_campaign=agentic-copilot-cli-launch-2025) and [Official Documentation](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/use-copilot-cli?utm_campaign=agentic-copilot-cli-launch-2025&utm_source=changelog-amp-linkedin)
157+
158+
`alias`
159+
`api`
160+
`attestation`
161+
`auth`
162+
`browse`
163+
`cache`
164+
`co`
165+
`codespace`
166+
`completion`
167+
`config`
168+
`extension`
169+
`gist`
170+
`gpg-key`
171+
`issue`
172+
`label`
173+
`org`
174+
`pr`
175+
`preview`
176+
`project`
177+
`release`
178+
`repo`
179+
` ruleset`
180+
`run`
181+
`search`
182+
`secret`
183+
`ssh-key`
184+
`status`
185+
`variable`
186+
`workflow`
187+
188+
For preview to run enter the following command. 👇🏻
143189

144-
```bash
145-
gh copilot suggest "start development server for docusaurus"
146-
gh copilot suggest "build docusaurus site for production"
147-
gh copilot suggest "deploy docusaurus site"
148-
```
149190
![Command to start](./images/03-try-out-the-usage-of-CLI.png)
150191

151-
### Package Management
192+
193+
### Documentation
152194

153195
```bash
154-
gh copilot suggest "install new dependencies for react project"
155-
gh copilot suggest "update docusaurus to latest version"
196+
gh copilot suggest "create new documentation page in docusaurus"
197+
gh copilot suggest "organize documentation with sidebars"
198+
gh copilot suggest "create code of conduct for repository"
156199
```
157200

158201
### Git Workflow
@@ -170,13 +213,6 @@ gh copilot suggest "check repository status and pending changes"
170213
gh copilot suggest "merge feature branch after review"
171214
```
172215

173-
### Documentation
174-
175-
```bash
176-
gh copilot suggest "create new documentation page in docusaurus"
177-
gh copilot suggest "organize documentation with sidebars"
178-
gh copilot suggest "create code of conduct for repository"
179-
```
180216

181217
### Testing & Quality
182218

@@ -185,8 +221,27 @@ gh copilot suggest "run linting checks on typescript files"
185221
gh copilot suggest "fix build errors in docusaurus"
186222
```
187223

224+
### Package Management
225+
226+
```bash
227+
gh copilot suggest "update docusaurus to latest version"
228+
```
188229
---
189230

231+
### Development
232+
233+
```bash
234+
gh copilot suggest "start development server for docusaurus"
235+
gh copilot suggest "build docusaurus site for production"
236+
gh copilot suggest "deploy docusaurus site"
237+
```
238+
239+
# SEO and metadata
240+
```bash
241+
gh copilot suggest "optimize SEO for docusaurus website"
242+
gh copilot suggest "add metadata to blog posts"
243+
```
244+
190245
## 🔗 Resources
191246

192247
* [Official Documentation](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/use-copilot-cli)

0 commit comments

Comments
 (0)