Deploy
Skill microsoft/power-platform-skills/plugins/code-apps/skills/deploy
Builds and deploys a Power Apps code app to Power Platform. Use when deploying changes, redeploying an existing app, or pushing updates.From its SKILL.md
npx -y skills add microsoft/power-platform-skills --skill deployAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- runs commandsInstructs the agent to run 3 commands, including `npm run build` and 2 more.
SKILL.md
1.7 KB, 358 tokens by cl100k_base, as published. Nobody here has run it
π Shared Instructions: shared-instructions.md - Cross-cutting concerns.
Deploy
Builds and deploys the app in the current directory to Power Platform.
Workflow
- Check Memory Bank β 2. Build β 3. Deploy β 4. Update Memory Bank
Step 1: Check Memory Bank
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.
Step 2: Build
npm run build
If the build fails:
- TS6133 (unused import): Remove the unused import and retry.
- Other TypeScript errors: Report the error with the file and line number and stop. Do not deploy a broken build.
Verify dist/ exists with index.html before continuing.
Step 3: Deploy
Ask the user: "Ready to deploy to [environment name]? This will update the live app." Wait for explicit confirmation before proceeding.
npx power-apps push
Capture the app URL from the output if present.
If deploy fails, report the error and stop β do not retry silently. Common fixes:
- Auth error / token expired β
npx power-apps logout, then retry β the CLI will re-prompt browser login. - Environment mismatch β update
environmentIdinpower.config.jsonto the correct value and retry.
Step 4: Update Memory Bank
If memory-bank.md exists, update:
- Last deployed timestamp
- App URL (if captured)
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.