Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. AB-400/
  4. AB-400 Learning Path/
  5. Study FAQs/
  6. How do I initialize and run a Power Apps code app locally?

Study FAQ

How do I initialize and run a Power Apps code app locally?

Exam · AB-400Knowledge domain · Extend the user experience (25–30%)Updated Nov 25, 2026
Also asked as 2
  • Which CLI do I use to create a code app and open Local Play?
  • How can I verify my code app is initialized in the intended Power Platform environment?

Answer

Use the Power Apps CLI pa from the approved starter's project root. Initialize the app in an environment where code apps are enabled, then open its Local Play address from a browser profile signed into the intended Power Platform tenant.

With Node.js LTS, npm, Git and Microsoft's Vite starter, the documented setup is:

npm install --global @microsoft/power-apps-cli
npm install --global @microsoft/power-apps
npm install
pa app init
pa app run

Review the starter's dependency versions as well as the globally installed tooling. Sign in when prompted, select the intended development environment and inspect the resulting project configuration. Allow browser local network access if the Local Play workflow requires it. Verify that the blank app loads in the correct tenant before adding live data connections. Microsoft Power Platform CLI pac remains a separate tool used for tasks such as PCF development.

Code app CLI quickstart · Code app requirements

Full explanation

AB-400: Building Code Apps with Dataverse and Automation

Study guide · AB-400

Read the full explanation →
← Back to AB-400 FAQsView learning path →

Related questions

How do I use environment variables for a code app's data source? →How do I read Dataverse table metadata in a Power Apps code app? →How do I deploy a Power Apps code app into a specific solution and share it? →How do I find what is slowing down a Power Apps code app? →How can a model-driven JavaScript command read a saved row instead of unsaved form values? →When should I use Power Fx or JavaScript for a model-driven command? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.