npx skills add ...
npx skills add microsoft/power-platform-skills --skill deploy
npx skills add microsoft/power-platform-skills --skill deploy
Builds and deploys a Power Apps code app to Power Platform. Use when deploying changes, redeploying an existing app, or pushing updates.
๐ 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.
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.
Capture the app URL from the output if present.
If deploy fails, report the error and stop โ do not retry silently. Common fixes:
npx power-apps logout, 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: