Create a code app from scratch

Create a Code App from Scratch

This QuickStart outlines the end-to-end process for creating, building, and deploying a Power Apps Code App using a Vite-based TypeScript framework and the Power Platform SDK. It highlights the necessary prerequisites, local development workflow, and deployment approach using the Power Platform CLI. This feature is currently in preview and is intended for evaluation and early feedback purposes only.


Prerequisites


Steps

  1. Open a new terminal and enter the necessary commands.
  2. Authenticate the Power Platform CLI against your Power Platform tenant and select your environment.
  3. Install the Power Platform SDK and initialize your code app using the recommended commands.
  4. Run the app locally using npm run dev and open Local Play.
  5. Build and deploy the app using npm run build | pac code push .

You should see the app open similar to the following:

Blog content image

If successful, the deployment command should return a Power Apps URL where you can run the app. You can also open Power Apps to play, share, or see details about the app.

Congratulations! You have successfully pushed your first Code App.


Related Information