Power Apps Code Apps are a new way of building applications using modern front-end development practices, including frameworks like React and TypeScript. These apps are hosted and managed within the Microsoft Power Platform. Unlike Canvas Apps, which are built using a drag-and-drop interface, Code Apps are developed in a code-first environment using tools like Visual Studio Code.

Key Features

1 . Code-First Development

2. Seamless Data Connectivity

3. Component-based Architecture

Quickstart: Project Setup

1. Initialize the Project

First, create your project using a ready-made template. This sets up all the basic files and folder structure for you.

Code
npx degit github:microsoft/PowerAppsCodeApps/templates/vite my-app
cd my-app

2. Authenticate with Power Platform

Next, connect your CLI to your Power Platform environment so you can work with your tenant.

Code
pac auth create
pac env select --environment <Your Environment ID>

How to get environment ID

3. Install Dependencies & Initialize App

Now install the required packages and initialize your Code App with basic metadata like the app name.

Code
npm install
pac code init --displayname "My New Code App"

4. Run the App Locally

Finally, start the development server to run your app locally and see changes instantly as you build.

Code
npm run dev

5. Open link of Local Play

Screenshot 2026-05-21 144027Screenshot 2026-05-21 144313

Conclusion

In this quickstart, we learned how to set up a Code App project using the Power Platform CLI, connect it to an environment, and run the app locally.