---
title: "GitHub Copilot CLI for Beginners: Interactive v. non-interactive mode"
source_name: "The GitHub Blog"
original_url: "https://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-interactive-v-non-interactive-mode/"
canonical_url: "https://www.traeai.com/articles/f1d0c8b8-f0bb-4981-b76b-bd035f1b7ddd"
content_type: "article"
language: "英文"
score: 7.5
tags: ["GitHub Copilot","CLI","交互式模式","非交互式模式","AI辅助编程"]
published_at: "2026-04-30T16:09:02+00:00"
created_at: "2026-04-30T23:14:45.411468+00:00"
---

# GitHub Copilot CLI for Beginners: Interactive v. non-interactive mode

Canonical URL: https://www.traeai.com/articles/f1d0c8b8-f0bb-4981-b76b-bd035f1b7ddd
Original source: https://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-interactive-v-non-interactive-mode/

## Summary

GitHub Copilot CLI入门指南，对比交互式与非交互式模式的使用方法，帮助开发者高效利用AI辅助编程。

## Key Takeaways

- 文章详细介绍了GitHub Copilot CLI两种工作模式：交互式适合实时代码建议，非交互式适用于批量生成代码。
- 通过实例演示如何在不同场景下配置和使用Copilot CLI，提升编程效率。
- 强调了GitHub Copilot作为AI辅助工具，在减少重复工作、启发创新解决方案方面的作用。

## Content

Title: GitHub Copilot CLI for Beginners: Interactive v. non-interactive mode

URL Source: http://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-interactive-v-non-interactive-mode/

Published Time: 2026-04-30T09:09:02-07:00

Markdown Content:
# GitHub Copilot CLI for Beginners: Interactive v. non-interactive mode - The GitHub Blog

[Skip to content](http://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-interactive-v-non-interactive-mode/#start-of-content)[Skip to sidebar](http://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-interactive-v-non-interactive-mode/#sidebar)

[](https://github.com/)/[Blog](https://github.blog/)
*   [Changelog](https://github.blog/changelog/)
*   [Docs](https://docs.github.com/)
*   [Customer stories](https://github.com/customer-stories)

[Try GitHub Copilot](https://github.com/features/copilot?utm_source=blog-tap-nav&utm_medium=blog&utm_campaign=universe25)[See what's new](https://github.com/events/universe/recap?utm_source=k2k-blog-tap-nav&utm_medium=blog&utm_campaign=universe25)

*   [AI & ML](https://github.blog/ai-and-ml/)
    *   [AI & ML](https://github.blog/ai-and-ml/)
Learn about artificial intelligence and machine learning across the GitHub ecosystem and the wider industry. 
        *   [Generative AI](https://github.blog/ai-and-ml/generative-ai/)
Learn how to build with generative AI.

        *   [GitHub Copilot](https://github.blog/ai-and-ml/github-copilot/)
Change how you work with GitHub Copilot.

        *   [LLMs](https://github.blog/ai-and-ml/llms/)
Everything developers need to know about LLMs.

        *   [Machine learning](https://github.blog/ai-and-ml/machine-learning/)
Machine learning tips, tricks, and best practices.

    *   ![Image 6](https://github.blog/wp-content/uploads/2024/06/AI-DarkMode-4.png?resize=800%2C425) [How AI code generation works](https://github.blog/ai-and-ml/generative-ai/how-ai-code-generation-works/)
Explore the capabilities and benefits of AI code generation and how it can improve your developer experience.

Learn more

*   [Developer skills](https://github.blog/developer-skills/)
    *   [Developer skills](https://github.blog/developer-skills/)
Resources for developers to grow in their skills and careers. 
        *   [Application development](https://github.blog/developer-skills/application-development/)
Insights and best practices for building apps.

        *   [Career growth](https://github.blog/developer-skills/career-growth/)
Tips & tricks to grow as a professional developer.

        *   [GitHub](https://github.blog/developer-skills/github/)
Improve how you use GitHub at work.

        *   [GitHub Education](https://github.blog/developer-skills/github-education/)
Learn how to move into your first professional role.

        *   [Programming languages & frameworks](https://github.blog/developer-skills/programming-languages-and-frameworks/)
Stay current on what’s new (or new again).

    *   ![Image 7](https://github.blog/wp-content/uploads/2024/05/Enterprise-DarkMode-3.png?resize=800%2C425) [Get started with GitHub documentation](https://docs.github.com/en/get-started)
Learn how to start building, shipping, and maintaining software with GitHub.

Learn more

*   [Engineering](https://github.blog/engineering/)
    *   [Engineering](https://github.blog/engineering/)
Get an inside look at how we’re building the home for all developers. 
        *   [Architecture & optimization](https://github.blog/engineering/architecture-optimization/)
Discover how we deliver a performant and highly available experience across the GitHub platform.

        *   [Engineering principles](https://github.blog/engineering/engineering-principles/)
Explore best practices for building software at scale with a majority remote team.

        *   [Infrastructure](https://github.blog/engineering/infrastructure/)
Get a glimpse at the technology underlying the world’s leading AI-powered developer platform.

        *   [Platform security](https://github.blog/engineering/platform-security/)
Learn how we build security into everything we do across the developer lifecycle.

        *   [User experience](https://github.blog/engineering/user-experience/)
Find out what goes into making GitHub the home for all developers.

    *   ![Image 8](https://github.blog/wp-content/uploads/2024/07/Screenshot-2024-07-23-at-8.42.45%E2%80%AFAM.png?resize=800%2C425) [How we use GitHub to be more productive, collaborative, and secure](https://github.blog/engineering/how-we-use-github-to-be-more-productive-collaborative-and-secure/)
Our engineering and security teams do some incredible work. Let’s take a look at how we use GitHub to be more productive, build collaboratively, and shift security left.

Learn more

*   [Enterprise software](https://github.blog/enterprise-software/)
    *   [Enterprise software](https://github.blog/enterprise-software/)
Explore how to write, build, and deploy enterprise software at scale. 
        *   [Automation](https://github.blog/enterprise-software/automation/)
Automating your way to faster and more secure ships.

        *   [CI/CD](https://github.blog/enterprise-software/ci-cd/)
Guides on continuous integration and delivery.

        *   [Collaboration](https://github.blog/enterprise-software/collaboration/)
Tips, tools, and tricks to improve developer collaboration.

        *   [DevOps](https://github.blog/enterprise-software/devops/)
DevOps resources for enterprise engineering teams.

        *   [DevSecOps](https://github.blog/enterprise-software/devsecops/)
How to integrate security into the SDLC.

        *   [Governance & compliance](https://github.blog/enterprise-software/governance-and-compliance/)
Ensuring your builds stay clean.

    *   ![Image 9](https://github.blog/wp-content/uploads/2024/07/Screenshot-2024-07-23-at-8.43.47%E2%80%AFAM.png?resize=800%2C425) [GitHub recognized as a Leader in the Gartner® Magic Quadrant™ for AI Code Assistants](https://github.com/resources/whitepapers/gartner-magic-quadrant-and-critical-capabilities-for-ai-code-assistants)
Learn why Gartner positioned GitHub as a Leader for the second year in a row.

Learn more

*   [News & insights](https://github.blog/news-insights/)
    *   [News & insights](https://github.blog/news-insights/)
Keep up with what’s new and notable from inside GitHub. 
        *   [Company news](https://github.blog/news-insights/company-news/)
An inside look at news and product updates from GitHub.

        *   [Product](https://github.blog/news-insights/product-news/)
The latest on GitHub’s platform, products, and tools.

        *   [Octoverse](https://github.blog/news-insights/octoverse/)
Insights into the state of open source on GitHub.

        *   [Policy](https://github.blog/news-insights/policy-news-and-insights/)
The latest policy and regulatory changes in software.

        *   [Research](https://github.blog/news-insights/research/)
Data-driven insights around the developer ecosystem.

        *   [The library](https://github.blog/news-insights/the-library/)
Older news and updates from GitHub.

    *   ![Image 10](https://github.blog/wp-content/uploads/2024/07/Screenshot-2024-07-23-at-8.44.23%E2%80%AFAM.png?resize=800%2C425) [Unlocking the power of unstructured data with RAG](https://github.blog/ai-and-ml/llms/unlocking-the-power-of-unstructured-data-with-rag/)
Learn how to use retrieval-augmented generation (RAG) to capture more insights.

Learn more

*   [Open Source](https://github.blog/open-source/)
    *   [Open Source](https://github.blog/open-source/)
Everything open source on GitHub. 
        *   [Git](https://github.blog/open-source/git/)
The latest Git updates.

        *   [Maintainers](https://github.blog/open-source/maintainers/)
Spotlighting open source maintainers.

        *   [Social impact](https://github.blog/open-source/social-impact/)
How open source is driving positive change.

        *   [Gaming](https://github.blog/open-source/gaming/)
Explore open source games on GitHub.

    *   ![Image 11](https://github.blog/wp-content/uploads/2024/07/Screenshot-2024-07-23-at-8.46.23%E2%80%AFAM.png?resize=800%2C425) [An introduction to innersource](https://resources.github.com/software-development/innersource/)
Organizations worldwide are incorporating open source methodologies into the way they build and ship their own software.

Learn more

*   [Security](https://github.blog/security/)
    *   [Security](https://github.blog/security/)
Stay up to date on everything security. 
        *   [Application security](https://github.blog/security/application-security/)
Application security, explained.

        *   [Supply chain security](https://github.blog/security/supply-chain-security/)
Demystifying supply chain security.

        *   [Vulnerability research](https://github.blog/security/vulnerability-research/)
Updates from the GitHub Security Lab.

        *   [Web application security](https://github.blog/security/web-application-security/)
Helpful tips on securing web applications.

    *   ![Image 12](https://github.blog/wp-content/uploads/2024/07/Screenshot-2024-07-23-at-8.47.04%E2%80%AFAM.png?resize=800%2C425) [The enterprise guide to AI-powered DevSecOps](https://resources.github.com/security/the-enterprise-guide-to-ai-powered-devsecops/)
Learn about core challenges in DevSecOps, and how you can start addressing them with AI and automation.

Learn more

 Search 

## Categories

*   [AI & ML](https://github.blog/ai-and-ml/)
    *   Back[AI & ML](https://github.blog/ai-and-ml/)
Learn about artificial intelligence and machine learning across the GitHub ecosystem and the wider industry. 
        *   [Generative AI](https://github.blog/ai-and-ml/generative-ai/)
Learn how to build with generative AI.

        *   [GitHub Copilot](https://github.blog/ai-and-ml/github-copilot/)
Change how you work with GitHub Copilot.

        *   [LLMs](https://github.blog/ai-and-ml/llms/)
Everything developers need to know about LLMs.

        *   [Machine learning](https://github.blog/ai-and-ml/machine-learning/)
Machine learning tips, tricks, and best practices.

    *   [How AI code generation works](https://github.blog/ai-and-ml/generative-ai/how-ai-code-generation-works/)
Explore the capabilities and benefits of AI code generation and how it can improve your developer experience.

[Learn more](https://github.blog/ai-and-ml/generative-ai/how-ai-code-generation-works/) 

*   [Developer skills](https://github.blog/developer-skills/)
    *   Back[Developer skills](https://github.blog/developer-skills/)
Resources for developers to grow in their skills and careers. 
        *   [Application development](https://github.blog/developer-skills/application-development/)
Insights and best practices for building apps.

        *   [Career growth](https://github.blog/developer-skills/career-growth/)
Tips & tricks to grow as a professional developer.

        *   [GitHub](https://github.blog/developer-skills/github/)
Improve how you use GitHub at work.

        *   [GitHub Education](https://github.blog/developer-skills/github-education/)
Learn how to move into your first professional role.

        *   [Programming languages & frameworks](https://github.blog/developer-skills/programming-languages-and-frameworks/)
Stay current on what’s new (or new again).

    *   [Get started with GitHub documentation](https://docs.github.com/en/get-started)
Learn how to start building, shipping, and maintaining software with GitHub.

[Learn more](https://docs.github.com/en/get-started) 

*   [Engineering](https://github.blog/engineering/)
    *   Back[Engineering](https://github.blog/engineering/)
Get an inside look at how we’re building the home for all developers. 
        *   [Architecture & optimization](https://github.blog/engineering/architecture-optimization/)
Discover how we deliver a performant and highly available experience across the GitHub platform.

        *   [Engineering principles](https://github.blog/engineering/engineering-principles/)
Explore best practices for building software at scale with a majority remote team.

        *   [Infrastructure](https://github.blog/engineering/infrastructure/)
Get a glimpse at the technology underlying the world’s leading AI-powered developer platform.

        *   [Platform security](https://github.blog/engineering/platform-security/)
Learn how we build security into everything we do across the developer lifecycle.

        *   [User experience](https://github.blog/engineering/user-experience/)
Find out what goes into making GitHub the home for all developers.

    *   [How we use GitHub to be more productive, collaborative, and secure](https://github.blog/engineering/how-we-use-github-to-be-more-productive-collaborative-and-secure/)
Our engineering and security teams do some incredible work. Let’s take a look at how we use GitHub to be more productive, build collaboratively, and shift security left.

[Learn more](https://github.blog/engineering/how-we-use-github-to-be-more-productive-collaborative-and-secure/) 

*   [Enterprise software](https://github.blog/enterprise-software/)
    *   Back[Enterprise software](https://github.blog/enterprise-software/)
Explore how to write, build, and deploy enterprise software at scale. 
        *   [Automation](https://github.blog/enterprise-software/automation/)
Automating your way to faster and more secure ships.

        *   [CI/CD](https://github.blog/enterprise-software/ci-cd/)
Guides on continuous integration and delivery.

        *   [Collaboration](https://github.blog/enterprise-software/collaboration/)
Tips, tools, and tricks to improve developer collaboration.

        *   [DevOps](https://github.blog/enterprise-software/devops/)
DevOps resources for enterprise engineering teams.

        *   [DevSecOps](https://github.blog/enterprise-software/devsecops/)
How to integrate security into the SDLC.

        *   [Governance & compliance](https://github.blog/enterprise-software/governance-and-compliance/)
Ensuring your builds stay clean.

    *   [GitHub recognized as a Leader in the Gartner® Magic Quadrant™ for AI Code Assistants](https://github.com/resources/whitepapers/gartner-magic-quadrant-and-critical-capabilities-for-ai-code-assistants)
Learn why Gartner positioned GitHub as a Leader for the second year in a row.

[Learn more](https://github.com/resources/whitepapers/gartner-magic-quadrant-and-critical-capabilities-for-ai-code-assistants) 

*   [News & insights](https://github.blog/news-insights/)
    *   Back[News & insights](https://github.blog/news-insights/)
Keep up with what’s new and notable from inside GitHub. 
        *   [Company news](https://github.blog/news-insights/company-news/)
An inside look at news and product updates from GitHub.

        *   [Product](https://github.blog/news-insights/product-news/)
The latest on GitHub’s platform, products, and tools.

        *   [Octoverse](https://github.blog/news-insights/octoverse/)
Insights into the state of open source on GitHub.

        *   [Policy](https://github.blog/news-insights/policy-news-and-insights/)
The latest policy and regulatory changes in software.

        *   [Research](https://github.blog/news-insights/research/)
Data-driven insights around the developer ecosystem.

        *   [The library](https://github.blog/news-insights/the-library/)
Older news and updates from GitHub.

    *   [Unlocking the power of unstructured data with RAG](https://github.blog/ai-and-ml/llms/unlocking-the-power-of-unstructured-data-with-rag/)
Learn how to use retrieval-augmented generation (RAG) to capture more insights.

[Learn more](https://github.blog/ai-and-ml/llms/unlocking-the-power-of-unstructured-data-with-rag/) 

*   [Open Source](https://github.blog/open-source/)
    *   Back[Open Source](https://github.blog/open-source/)
Everything open source on GitHub. 
        *   [Git](https://github.blog/open-source/git/)
The latest Git updates.

        *   [Maintainers](https://github.blog/open-source/maintainers/)
Spotlighting open source maintainers.

        *   [Social impact](https://github.blog/open-source/social-impact/)
How open source is driving positive change.

        *   [Gaming](https://github.blog/open-source/gaming/)
Explore open source games on GitHub.

    *   [An introduction to innersource](https://resources.github.com/software-development/innersource/)
Organizations worldwide are incorporating open source methodologies into the way they build and ship their own software.

[Learn more](https://resources.github.com/software-development/innersource/) 

*   [Security](https://github.blog/security/)
    *   Back[Security](https://github.blog/security/)
Stay up to date on everything security. 
        *   [Application security](https://github.blog/security/application-security/)
Application security, explained.

        *   [Supply chain security](https://github.blog/security/supply-chain-security/)
Demystifying supply chain security.

        *   [Vulnerability research](https://github.blog/security/vulnerability-research/)
Updates from the GitHub Security Lab.

        *   [Web application security](https://github.blog/security/web-application-security/)
Helpful tips on securing web applications.

    *   [The enterprise guide to AI-powered DevSecOps](https://resources.github.com/security/the-enterprise-guide-to-ai-powered-devsecops/)
Learn about core challenges in DevSecOps, and how you can start addressing them with AI and automation.

[Learn more](https://resources.github.com/security/the-enterprise-guide-to-ai-powered-devsecops/) 

*   [Changelog](https://github.blog/changelog/)
*   [Docs](https://docs.github.com/)
*   [Customer stories](https://github.com/customer-stories)

[See what's new](https://github.com/events/universe/recap?utm_source=k2k-blog-tap-nav&utm_medium=blog&utm_campaign=universe25)[Try GitHub Copilot](https://github.com/features/copilot?utm_source=blog-tap-nav&utm_medium=blog&utm_campaign=universe25)

[Home](https://github.blog/)/[AI & ML](https://github.blog/ai-and-ml/)/[GitHub Copilot](https://github.blog/ai-and-ml/github-copilot/)

# GitHub Copilot CLI for Beginners: Interactive v. non-interactive mode

Learn the difference between CLI interactive v. non-interactive modes.

![Image 13: Decorative header image showing 'Interactive vs. inline mode'](https://github.blog/wp-content/uploads/2026/04/Episode-2.png?resize=1280%2C720)

[Kayla Cinnamon](https://github.blog/author/cinnamonmsft/ "Posts by Kayla Cinnamon")·[@cinnamon-msft](https://github.com/cinnamon-msft)

 April 30, 2026 

| 4 minutes 

*    Share: 
*   [](https://x.com/share?text=GitHub%20Copilot%20CLI%20for%20Beginners%3A%20Interactive%20v.%20non-interactive%20mode&url=https%3A%2F%2Fgithub.blog%2Fai-and-ml%2Fgithub-copilot%2Fgithub-copilot-cli-for-beginners-interactive-v-non-interactive-mode%2F)
*   [](https://www.facebook.com/sharer/sharer.php?t=GitHub%20Copilot%20CLI%20for%20Beginners%3A%20Interactive%20v.%20non-interactive%20mode&u=https%3A%2F%2Fgithub.blog%2Fai-and-ml%2Fgithub-copilot%2Fgithub-copilot-cli-for-beginners-interactive-v-non-interactive-mode%2F)
*   [](https://www.linkedin.com/shareArticle?title=GitHub%20Copilot%20CLI%20for%20Beginners%3A%20Interactive%20v.%20non-interactive%20mode&url=https%3A%2F%2Fgithub.blog%2Fai-and-ml%2Fgithub-copilot%2Fgithub-copilot-cli-for-beginners-interactive-v-non-interactive-mode%2F)

Welcome to GitHub Copilot CLI for Beginners! In this series (available in [video](https://www.youtube.com/playlist?list=PL0lo9MOBetEHvO-spzKBAITkkTqv4RvNl) and [blog](https://github.blog/tag/github-copilot-cli-for-beginners/) format), we’ll give you everything you need to get started using [GitHub Copilot CLI](https://github.com/features/copilot/cli?utm_source=blog-cli-beginners-ep2-features-cta&utm_medium=blog&utm_campaign=dev-pod-copilot-cli-2026), from your first prompt to tips for navigating the command line like a pro!

In this blog, we’ll cover the two main modes of the CLI: interactive and non-interactive. You’ll learn the differences between the two modes, how to enter them, and what they’re most useful for.

Let’s dive in!

## What is GitHub Copilot CLI interactive mode?

Interactive mode is a back-and-forth, chat-like experience. When you launch Copilot CLI with Copilot, you’re already in interactive mode—that’s the default. Non-interactive mode is a separate option for when you want a quick, one-off answer without entering a session. (More on non-interactive mode later!)

In interactive mode, you can ask GitHub Copilot a question, review its response, and then either follow up with questions or another prompt—all within the same session. This is the mode for those who want to work hands-on with Copilot and iterate as you go.

Here’s how to enter interactive mode:

*   From the command line, type `copilot` and hit Enter.
*   Copilot may ask you to trust this folder, because it needs permission to read and modify files.
*   Ask Copilot a question, like “How do I run this project locally?”
*   Copilot will give you instructions, which you can do on your own. But if you want to work collaboratively, you can ask Copilot: “Can you run it for me?”
*   Copilot will analyze your project and then start the server.
*   We can review our project, decide what changes we want, and continue working with Copilot, all in the same session.

## What is GitHub Copilot CLI non-interactive mode?

On the other hand, non-interactive mode is designed for speed and simplicity. Instead of having to enter a full session, you pass a single prompt right in the command line and get a response almost immediately, without needing to follow up with Copilot.

Designed as an in-line experience, this mode is perfect for quick, one-shot prompts like summarizing a repository, generating code snippets, or plugging Copilot into automated workflows, without leaving your shell context. Once you get an answer, you’re right back in your terminal flow.

Here’s how to enter non-interactive mode:

*   Start at the regular command line (if you’re in Copilot, you’ll need to exit).
*   Type `copilot -p` and prompt the agent with something like “Quickly summarize what this repository does and the key folders.”
*   Copilot will sift through your project files to provide an answer. Ta-da! ✨

Together, these two modes help you tackle all kinds of projects efficiently: interactive for explorative, deeper work, and non-interactive for fast, focused results when you already know exactly what you need.

## How to resume a previous Copilot session

Sometimes, you may want to pick up right where you left off in a previous Copilot session, while retaining all the context from that conversation.

If you’re in interactive mode, you can type `/resume` into the command line and Copilot will let you choose a previous session from a list. If you want to launch directly into the previous session picker from non-interactive mode, use `copilot --resume`.

It only takes one command to pick back up with Copilot, which is super useful if you already know what session you want to work in.

Take this with you GitHub Copilot CLI interactive and non-interactive modes are the fastest ways to prompt Copilot directly from your terminal. Having the option to pick between back-and-forth coding and quick prompting means you can work with Copilot, the way you want.

Keep an eye out for more videos in the GitHub Copilot CLI for Beginners series, where we’ll explore:

*   Copilot CLI slash commands
*   Using MCP servers with Copilot CLI
*   And more!

Happy coding!

**Looking to try GitHub Copilot CLI?**[Read the Docs](https://docs.github.com/copilot/concepts/agents/about-copilot-cli?utm_source=blog-cli-beginners-ep2-features-cta&utm_medium=blog&utm_campaign=dev-pod-copilot-cli-2026) and [get started](https://github.com/features/copilot/cli?utm_source=blog-cli-beginners-ep2-features-cta&utm_medium=blog&utm_campaign=dev-pod-copilot-cli-2026) today.

### More resources to explore:

*   [GitHub Copilot CLI for Beginners video series](https://www.youtube.com/playlist?list=PL0lo9MOBetEHvO-spzKBAITkkTqv4RvNl)
*   [GitHub Copilot CLI for Beginners: Getting started with GitHub Copilot CLI](https://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-getting-started-with-github-copilot-cli/)
*   [GitHub Copilot CLI 101: how to use GitHub Copilot from the command line](https://github.blog/ai-and-ml/github-copilot-cli-101-how-to-use-github-copilot-from-the-command-line/?utm_source=blog-announcement-cli-tutorial&utm_medium=blog&utm_campaign=universe25post)
*   [Best practices for GitHub Copilot CLI](https://docs.github.com/copilot/how-tos/copilot-cli/cli-best-practices?utm_campaign=copilot-brand&utm_medium=sem&utm_source=google&ocid=AIDcmmh2h80ugd_SEM__k_CjwKCAjw-dfOBhAjEiwAq0RwI0TIeyL9bjDmXlY26JKPbDvHGzBcaZUa4LR8u8SJuGbIke6e7U2YXRoCzGQQAvD_BwE_k_cli?utm_source=blog-cli-beginners-ep2-features-cta&utm_medium=blog&utm_campaign=dev-pod-copilot-cli-2026)

* * *

## Tags:

*   [GitHub Copilot CLI](https://github.blog/tag/github-copilot-cli/)
*   [GitHub Copilot CLI for Beginners](https://github.blog/tag/github-copilot-cli-for-beginners/)

## Written by

![Image 14: Kayla Cinnamon](https://avatars.githubusercontent.com/u/48369326?v=4&s=200)

### [Kayla Cinnamon](https://github.blog/author/cinnamonmsft/)

[@cinnamon-msft](https://github.com/cinnamon-msft)

Senior AI Developer Tools Advocate

*   [GitHub Copilot CLI](https://github.blog/tag/github-copilot-cli/)
*   [GitHub Copilot CLI for Beginners](https://github.blog/tag/github-copilot-cli-for-beginners/)

## Table of Contents

*   [What is GitHub Copilot CLI interactive mode?](http://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-interactive-v-non-interactive-mode/#h-what-is-github-copilot-cli-interactive-mode)
*   [What is GitHub Copilot CLI non-interactive mode?](http://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-interactive-v-non-interactive-mode/#h-what-is-github-copilot-cli-non-interactive-mode)
*   [How to resume a previous Copilot session](http://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-interactive-v-non-interactive-mode/#how-to-resume-a-previous-copilot-session)

## More on [GitHub Copilot CLI](https://github.blog/tag/github-copilot-cli/)

### [Building an emoji list generator with the GitHub Copilot CLI](https://github.blog/ai-and-ml/github-copilot/building-an-emoji-list-generator-with-the-github-copilot-cli/)

See how we created an emoji list generator during the Rubber Duck Thursday stream.

[Cassidy Williams](https://github.blog/author/cassidoo/ "Posts by Cassidy Williams")

### [Build a personal organization command center with GitHub Copilot CLI](https://github.blog/ai-and-ml/github-copilot/build-a-personal-organization-command-center-with-github-copilot-cli/)

Learn about the productivity tool one GitHub engineer built, and how AI supported the development process.

[Cassidy Williams](https://github.blog/author/cassidoo/ "Posts by Cassidy Williams")&[Jacklyn Carroll](https://github.blog/author/jacklynlee31/ "Posts by Jacklyn Carroll")

## Related posts

![Image 15: Header image showing the Welcome screen of the GitHub Copilot CLI](https://github.blog/wp-content/uploads/2026/04/image-19.png?resize=400%2C212)

[AI & ML](https://github.blog/ai-and-ml/)

### [Building an emoji list generator with the GitHub Copilot CLI](https://github.blog/ai-and-ml/github-copilot/building-an-emoji-list-generator-with-the-github-copilot-cli/)

See how we created an emoji list generator during the Rubber Duck Thursday stream.

[Cassidy Williams](https://github.blog/author/cassidoo/ "Posts by Cassidy Williams")

![Image 16: Thumbnail showing 'My AI command center'](https://github.blog/wp-content/uploads/2026/04/command-cecnter.png?resize=400%2C212)

[AI & ML](https://github.blog/ai-and-ml/)

### [Build a personal organization command center with GitHub Copilot CLI](https://github.blog/ai-and-ml/github-copilot/build-a-personal-organization-command-center-with-github-copilot-cli/)

Learn about the productivity tool one GitHub engineer built, and how AI supported the development process.

[Cassidy Williams](https://github.blog/author/cassidoo/ "Posts by Cassidy Williams")&[Jacklyn Carroll](https://github.blog/author/jacklynlee31/ "Posts by Jacklyn Carroll")

![Image 17: Copilot moves through a decorative field of floating cubes marked with sync and check icons.](https://github.blog/wp-content/uploads/2026/01/generic-security-invertocat-blocks-copilot.png?resize=400%2C212)

[AI & ML](https://github.blog/ai-and-ml/)

### [Hack the AI agent: Build agentic AI security skills with the GitHub Secure Code Game](https://github.blog/security/hack-the-ai-agent-build-agentic-ai-security-skills-with-the-github-secure-code-game/)

Learn to find and exploit real-world agentic AI vulnerabilities through five progressive challenges in this free, open source game that over 10,000 developers have already used to sharpen their security skills.

[Joseph Katsioloudes](https://github.blog/author/jkcso/ "Posts by Joseph Katsioloudes")

## Explore more from GitHub

![Image 18: Docs](https://github.blog/wp-content/uploads/2024/07/Icon-Circle.svg)
### Docs

Everything you need to master GitHub, all in one place.

[Go to Docs](https://docs.github.com/)

![Image 19: GitHub](https://github.blog/wp-content/uploads/2024/07/recirculation-github-icon.svg)
### GitHub

Build what’s next on GitHub, the place for anyone from anywhere to build anything.

[Start building](https://github.com/)

![Image 20: Customer stories](https://github.blog/wp-content/uploads/2024/07/Icon_da43dc.svg)
### Customer stories

Meet the companies and engineering teams that build with GitHub.

[Learn more](https://github.com/customer-stories)

![Image 21: The GitHub Podcast](https://github.blog/wp-content/uploads/2023/02/galaxy23-icon.svg)
### The GitHub Podcast

Catch up on the GitHub podcast, a show dedicated to the topics, trends, stories and culture in and around the open source developer community on GitHub.

[Listen now](https://the-github-podcast.simplecast.com/)

## We do newsletters, too

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

Your email address 

*Your email address 

Subscribe

- [x]  Yes please, I’d like GitHub and affiliates to use my information for personalized communications, targeted advertising and campaign effectiveness. See the [GitHub Privacy Statement](https://github.com/site/privacy) for more details.  

Subscribe

## Site-wide Links

[](https://github.com/)

### Product

*   [Features](https://github.com/features)
*   [Security](https://github.com/security)
*   [Enterprise](https://github.com/enterprise)
*   [Customer Stories](https://github.com/customer-stories?type=enterprise)
*   [Pricing](https://github.com/pricing)
*   [Resources](https://resources.github.com/)

### Platform

*   [Developer API](https://developer.github.com/)
*   [Partners](https://partner.github.com/)
*   [Atom](https://atom.io/)
*   [Electron](https://www.electronjs.org/)
*   [GitHub Desktop](https://desktop.github.com/)

### Support

*   [Docs](https://docs.github.com/)
*   [Community Forum](https://github.community/)
*   [Training](https://services.github.com/)
*   [Status](https://www.githubstatus.com/)
*   [Contact](https://support.github.com/)

### Company

*   [About](https://github.com/about)
*   [Blog](https://github.blog/)
*   [Careers](https://github.com/about/careers)
*   [Press](https://github.com/about/press)
*   [Shop](https://shop.github.com/)

*   © 2026 GitHub, Inc.
*   [Terms](https://docs.github.com/en/github/site-policy/github-terms-of-service)
*   [Privacy](https://docs.github.com/en/github/site-policy/github-privacy-statement)
*   Manage Cookies
*   Do not share my personal information

*   [GitHub on LinkedIn](https://www.linkedin.com/company/github)
*   [GitHub on Instagram](https://www.instagram.com/github/)
*   [GitHub on YouTube](https://www.youtube.com/github)
*   [GitHub on X](https://twitter.com/github)
*   [GitHub on TikTok](https://www.tiktok.com/@github)
*   [GitHub on Twitch](https://www.twitch.tv/github)
*   [GitHub’s organization on GitHub](https://github.com/github)

![Image 22](http://github.blog/ai-and-ml/github-copilot/github-copilot-cli-for-beginners-interactive-v-non-interactive-mode/)×
