Loading...
Loading...
Windows App Development CLI (winapp) for building, packaging, and deploying Windows applications. Use when asked to initialize Windows app projects, create MSIX packages, generate AppxManifest.xml, manage development certificates, add package identity for debugging, sign packages, or access Windows SDK build tools. Supports .NET, C++, Electron, Rust, Tauri, and cross-platform frameworks targeting Windows.
npx skill4agent add github/awesome-copilot winapp-cliwinappwinget install Microsoft.WinAppCli --source wingetnpm install @microsoft/winappcli --save-devwinapp initstablepreviewexperimentalnonewinapp packwinapp create-debug-identitywinapp manifestwinapp certwinapp signwinapp tool# Initialize workspace with defaults
winapp init
# Build your application (framework-specific)
# ...
# Create signed MSIX package
winapp pack ./build-output --generate-cert --output MyApp.msix# Add debug identity to executable for testing Windows APIs
winapp create-debug-identity ./bin/MyApp.exe
# Run your app - it now has package identity
./bin/MyApp.exe# GitHub Actions example
- name: Setup winapp CLI
uses: microsoft/setup-WinAppCli@v1
- name: Initialize and Package
run: |
winapp init --no-prompt
winapp pack ./build-output --output MyApp.msix# Install via npm
npm install @microsoft/winappcli --save-dev
# Initialize and add debug identity for Electron
npx winapp init
npx winapp node add-electron-debug-identity
# Package for distribution
npx winapp pack ./out --output MyElectronApp.msixwinapp initcreate-debug-identity--no-promptwinapp restorewinapp.yamlwinapp manifest update-assetscd my-project
winapp init
# Creates: AppxManifest.xml, development certificate, SDK configuration, winapp.yamlwinapp pack ./build-output --cert ./mycert.pfx --cert-password secret --output MyApp.msix# Bundle Windows App SDK runtime with the package
winapp pack ./my-app --self-contained --generate-cert# Update to latest stable SDKs
winapp update
# Or update to preview SDKs
winapp update --setup-sdks previewcreate-debug-identity| API Category | Examples |
|---|---|
| Notifications | Interactive native notifications, notification management |
| Windows AI | On-device LLM, text/image AI APIs (Phi Silica, Windows ML) |
| Shell Integration | Explorer, Taskbar, Share sheet integration |
| Protocol Handlers | Custom URI schemes ( |
| Device Access | Camera, microphone, location (with consent) |
| Background Tasks | Run when app is closed |
| File Associations | Open file types with your app |
| Issue | Solution |
|---|---|
| Certificate not trusted | Run |
| Package identity not working | Run |
| SDK not found | Run |
| Signing fails | Verify certificate password and ensure cert is not expired |