Buildathons.ai

Build a GitHub Copilot-powered CLI Course

Create a command-line tool that uses GitHub Copilot's API to generate code from natural language descriptions. Follow this intermediate course with 4…

Course overview

Create a command-line tool that uses GitHub Copilot's API to generate code from natural language descriptions.

Set up the project

Initialize a new Node.js CLI project with the required dependencies.

Create the GitHub Models client

GitHub Models gives you free access to frontier models using your GitHub token.

Build the CLI interface

Use commander to create a clean CLI with subcommands.

Test your CLI

Run the CLI and generate some code! Get a GitHub token at github.com/settings/tokens — enable the models:read scope.