Creating a Gen Page using Copilot CLI

Leave a comment

In a previous post we looked at creating Gen Pages using VS Code. In this post, we will look at how to do this using the Copilot CLI.

First, install and configure the Copilot CLI.

Once complete, run copilot to start the CLI and log into GitHub with login:

copilot

To use gen pages, we’re going to run the command:

/genpage

Our AI comes back with:

And we’re now prompted to create a new page or edit an existing one:

My prompt:

List all leads in the system. Make the background of the list light blue. The lead fields to display should be: First Name, Last Name, Topic, Created Date. Sort by
Created Date.

We can see here the page was deployed successfully, and it is now prompting us to verify in a browser using Playwright:

Once complete, we see a new app has been created:

And a page has been created to our specifications:

We can see the code is located in genpage folder that was created:

And we can see the Plan used by the Planner to create the page:

Once again, we can continue to iterate over our page and improve it through feedback loops.

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.com | LinkedIn | Twitter | YouTube

 

Leave a Reply

Your email address will not be published. Required fields are marked *