Exercise 0: Prerequisites
Before you start the Copilot CLI exercises, you need to get everything ready. You’ll create your own copy of the Tailspin Toys repository and spin up a codespace, whose integrated terminal you’ll use to install and run Copilot CLI in the next exercise.
Setting up the lab repository
Section titled “Setting up the lab repository”To create a copy of the repository for the code you’ll create, you’ll make an instance from the template. The new instance will contain all of the necessary files for the lab, and you’ll use it as you work through the exercises.
-
In a new browser window, navigate to the GitHub repository for this lab:
https://github.com/github-samples/tailspin-toys. -
Create your own copy of the repository by selecting the Use this template button on the lab repository page. Then select Create a new repository.

-
If you are completing the workshop as part of an event being led by GitHub or Microsoft, follow the instructions provided by the mentors. Otherwise, you can create the new repository in an organization where you have access to GitHub Copilot.

-
Make a note of the repository path you created (organization-or-user-name/repository-name), as you will be referring to this later in the lab.
Creating a codespace
Section titled “Creating a codespace”Next up, you’ll use a codespace to complete the lab exercises.
GitHub Codespaces are a cloud-based development environment that allows you to write, run, and debug code directly in your browser. It provides a fully-featured IDE with support for multiple programming languages, extensions, and tools.
-
Navigate to your newly created repository.
-
Select the green Code button.

-
Select the Codespaces tab and select the + button to create a new Codespace.

The creation of the codespace will take several minutes, although it’s still far quicker than having to manually install all the services! That said, you can use this time to explore other features of GitHub Copilot, which we’ll turn your attention to next.
Summary
Section titled “Summary”Congratulations, you have created a copy of the lab repository! You also began the creation process of your codespace, which you’ll use when you begin working with Copilot CLI.
Next step
Section titled “Next step”Let’s install Copilot CLI and authenticate it with your GitHub account. Continue to Exercise 1 - Installing GitHub Copilot CLI.