winapp, the Windows App Development CLI, is a single command-line interface for managing Windows SDKs, packaging, generating app identity, manifests, certificat
winapp, the Windows App Development CLI, is a single command-line interface for managing Windows SDKs, packaging, generating app identity, manifests, certificat
[!IMPORTANT] :warning: Status: Public Preview — The Windows App Development CLI (winapp CLI) is experimental and in active development. We'd love your feedback! Share your thoughts by creating an issue.
[!NOTE] The
mainbranch contains work that is in active development. Documentation, features, and behavior here may differ from what is publicly released. For the latest stable version, see the latest release. To try the newest in-progress build, see Install from latest build below.
Why? • Get Started • Installation • Usage • Docs • Feedback
The Windows App Development CLI (winapp CLI) is a single command-line interface for managing Windows SDKs, packaging, generating app identity, manifests, certificates, and using build tools with any app framework. This tool bridges the gap between cross-platform development and Windows-native capabilities.
Whether you're building with .NET/Win32, CMake, Electron, or Rust, this CLI gives you access to:
Perfect for:
Many Windows APIs require your app to have package identity, enabling you to leverage some of the OS components Windows offers, that you wouldn't otherwise have access to. With identity, your app gains access to user-first features like notifications, OS integration, and on-device AI.
Our goal is to support developers wherever they are, with the tools and frameworks they already use. Based on feedback from developers shipping cross-platform apps on Windows, we built this CLI to streamline integrating with the Windows developer platform - handling SDK setup, header generation, manifests, certificates, and packaging in just a few commands:
Without winapp CLI, setting up a project involves 12 manual steps—downloading SDKs, generating headers, creating manifests, and more. With the CLI, it's just 4 commands.
Few examples of what package identity and MSIX packaging unlocks:
yourapp:// URIs)yoursite.com opens your app).xyz files with your app)Checkout our getting started guides for step by step instructions of how to setup your environment, generate manifests, assets, and certificate, how to debug APIs that require package identity, and how to MSIX package your app.
Additional guides:
winapp init --add-js-bindings. See task-focused guides:The easiest way to use the CLI is via WinGet (Windows Package Manager). In Terminal, simply run:
winget install Microsoft.winappcli --source winget
Or, if you prefer a PowerShell terminal, you can use the WinGet PowerShell cmdlet (from the Microsoft.WinGet.Client module):
Install-WinGetPackage Microsoft.winappcli
You can install the CLI for Electron projects via NPM:
npm install @microsoft/winappcli --save-dev
For CI/CD pipelines on GitHub Actions or Azure DevOps, use the setup-WinAppCli action to automatically install the CLI on your runners/agents.
Download the latest build from GitHub Releases
[!CAUTION] These builds are from the
mainbranch and may include unreleased features, breaking changes, or experimental functionality. Use at your own risk.
Download the latest CI build artifacts directly (no GitHub login required):
| Artifact | Description |
|---|---|
| CLI Binaries | Native CLI executables (win-x64, win-arm64) |
| npm Package | @microsoft/winappcli .tgz package |
| MSIX Packages | MSIX installer bundle (self-signed) |
| NuGet Packages | NuGet .nupkg packages |
Download links not working?
The direct links above are provided by nightly.link, a third-party service. If they stop working, you can download the same artifacts from GitHub Actions directly:
main)Note: Downloading artifacts from GitHub Actions requires you to be signed in to GitHub.
Once installed (see Installation above), verify the installation by calling the CLI:
winapp --helpor if using Electron/Node.js
npx winapp --helpSetup Commands:
new - Create a new WinUI app from an official Windows App SDK templateinit - Initialize project with Windows SDK and App SDKrestore - Restore packages and dependenciesupdate - Update packages and dependencies to latest versionsApp Identity & Debugging:
pack - Create MSIX packages from directoriesrun - Run app as a packaged application for debugging (loose layout registration)create-debug-identity - Add sparse package identity to an existing exeembed-identity - Connect an exe to its sparse identity package by embedding the `` elementunregister - Remove sideloaded dev packages registered by run or create-debug-identitymanifest - Generate and manage AppxManifest.xml filesSee also: Debugging Guide — choosing between winapp run and create-debug-identity, IDE setup, and debugging scenarios.
Certificates & Signing:
cert - Generate and install development certificatessign - Sign MSIX packages and executablesaz-sign - Sign with Azure Trusted Signing (cloud-managed identity, no local PFX)create-external-catalog - Generate CodeIntegrityExternal.cat for TrustedLaunch sparse packagesDevelopment Tools:
tool - Access Windows SDK toolsstore - Run Microsoft Store Developer CLI commandsget-winapp-path - Get paths to installed SDK componentsDiscovery (agent-first — built for AI coding agents to ground generated code in real metadata and real samples, and usable by hand):
find-api - Search and inspect the Windows/WinRT API surface (types, members, enums, namespaces) a project referencesfind-ui - Search WinUI controls & samples (WinUI 3 Gallery + Windows Community Toolkit; Reactor is opt-in via --source reactor) for a working code exampleNode.js/Electron Specific:
node create-addon - Generate native C# or C++ addonsnode add-electron-debug-identity - Add identity to Electron processesnode clear-electron-debug-identity - Remove identity from Electron processesThe full CLI usage can be found here: Documentation The full NPM usage can be found here: NPM Programmatic API Reference
This repository includes samples demonstrating how to use the CLI with various frameworks:
| Sample | Description |
|---|---|
| C++ App | Native C++ Win32 application with CMake |
| .NET Console | .NET console application |
| WPF App | WPF desktop application |
| [WinUI App](/sampl |
No open issues yet, or sync has not completed.