Terminal
Terminal/Skill
Builds a Power Apps code app and deploys it to Power Platform, pushing updates to an existing app.
By Microsoft
Works with
npx skills add microsoft/power-platform-skills --skill deploy📋 Shared Instructions: shared-instructions.md - Cross-cutting concerns.
Builds and deploys the app in the current directory to Power Platform.
Check for memory-bank.md in the project root. If found, read it for the project name and environment. If not found, proceed — the project may have been created without the plugin.
npm run build
If the build fails:
Verify dist/ exists with index.html before continuing.
Ask the user: "Ready to deploy to [environment name]? This will update the live app." Wait for explicit confirmation before proceeding.
Resolve the CLI first (see cli-binary.md): run as
$PA app push(npx --no-install pa …), never a barepa. Onpower-apps-only projects, translate topower-apps push.
pa app push
Capture the app URL from the output if present.
If deploy fails, report the error and stop — do not retry silently. Common fixes:
pa auth logout (or power-apps logout on power-apps-only projects), then retry — the CLI will re-prompt browser login.environmentId in power.config.json to the correct value and retry.If memory-bank.md exists, update: