Code Apps Commands Sheet

Hello developers! First post of 2026.

We need to continue to learn as this industry is constantly evolving. Today I went through building a Power Apps Code App and I must say it was quite a learning experience. Code Apps can definitely increase velocity and speed up rapid development. Whatever ideas you have in mind and are able to articulate effectively then the possibilities are endless.

This post, is nothing out of the ordinary but more of a note to self and to others of a list of commands that are useful when you delve into this variant in the Power Apps. I’ll continue to update post and add additional commands.

CommandWhat it does?When you use it?
npx degit github:microsoft/PowerAppsCodeApps/templates/vite <yourappname>Creates a new Power Apps “Code App” project using a pre-configured Vite and React template.Your first step when creating a Code App.
npm installInstalls all dependencies from package.json.After cloning or creating your Code App project to set up your environment.
npm run devRuns the code app locally.When code has been developed or changed, you can view how the changes appears and functions.
npm run buildRuns scripts from package.json. Executes tsc -b && vite buildWhen its time to make the app for production. Your source code is being optimized, and your preparing for a deployment.
npx power-apps pushPublishes a new version of the code app to your environmentWhen you’re ready to take the package that exists locally and upload it to the Power Platform.

Resources

How to: Quickstart with npm CLI (preview) – Power Apps | Microsoft Learn