Demo: Using GitHub Copilot CLI and YOLO Mode

GitHub presents a demonstration by @shanselman on leveraging the –yolo mode of GitHub Copilot CLI, which enables autonomous command execution—ideal for containerized or automated developer workflows.

Demo: Using GitHub Copilot CLI and YOLO Mode

In this demonstration, @shanselman walks through the functionality of the --yolo mode in the GitHub Copilot CLI. Traditionally, developers must manually approve each command that Copilot suggests, but with --yolo, all tool calls and path accesses are approved automatically. This allows Copilot to execute commands autonomously without user intervention.

Key Features

Example Use Case

Why Use YOLO Mode?

“Letting Copilot run autonomously with –yolo drops the friction in development pipelines that rely on repetitive command approvals.”

Additional Resources

For more Copilot CLI tips, follow GitHub on your favorite platform.