
Deploy
Build a Power Apps code app with npm, confirm with the user, and push updates to a Power Platform environment via the power-apps CLI.
Install
npx skills add https://github.com/microsoft/power-platform-skills --skill deployWhat is this skill?
- Four-step workflow: Memory Bank → npm run build → user-confirmed deploy → Memory Bank update
- Fails closed on TypeScript build errors (reports file and line, no silent deploy)
- Requires explicit user confirmation before npx power-apps push
- Uses npx power-apps push and captures app URL from CLI output
- Documents auth recovery via npx power-apps logout when tokens expire
Adoption & trust: 77 installs on skills.sh; 349 GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Azure Kubernetesmicrosoft/azure-skills
Github Actions Docsxixu-me/skills
Deploy To Vercelvercel-labs/agent-skills
Vercel Cli With Tokensvercel-labs/agent-skills
Turborepovercel/turborepo
Docker Expertsickn33/antigravity-awesome-skills
Journey fit
Primary fit
First push to a live environment is the Ship launch gate; repeat deploys also matter in Operate, so the skill spans shipping and running the app. Launch subphase under Ship is where production-bound builds get promoted after local verification—not local prototyping alone.
Common Questions / FAQ
Is Deploy safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Deploy
**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns. # Deploy Builds and deploys the app in the current directory to Power Platform. ## Workflow 1. 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 ```bash 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. ```bash 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 `environmentId` in `power.config.json` to the correct value and retry. ### Step 4: Update Memory Bank If `memory-bank.md` exists, update: - Last deployed timestamp - App URL (if captured)