Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

winappCli

> 开发工具
Open source

winapp, the Windows App Development CLI, is a single command-line interface for managing Windows SDKs, packaging, generating app identity, manifests, certificat

1.2K stars0 likes1 views
WebsiteGitHub

About

winapp, the Windows App Development CLI, is a single command-line interface for managing Windows SDKs, packaging, generating app identity, manifests, certificat

winapp CLI

[!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 main branch 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:

  • Modern Windows APIs - Windows App SDK and Windows SDK with automatic setup and code generation
  • Package Identity - Debug and test by adding package identity without full packaging in a snap
  • MSIX Packaging - App packaging with signing and Store readiness
  • Developer Tools - Manifests, certificates, assets, and build integration

Perfect for:

  • Cross-platform developers using frameworks like Qt or Electron wanting native Windows features or targeting Windows
  • Developers who love their current tools and want to build Windows apps from VS Code, or any other editor
  • Developers crafting CI/CD pipelines to automate building apps for Windows

Why?

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:

  • Interactive native notifications and notification management
  • Integration with Windows Explorer, Taskbar, Share sheet, and other shell surfaces
  • Protocol handlers (yourapp:// URIs)
  • Web-to-app linking (yoursite.com opens your app)
  • On-device AI (Local LLM, Text and Image AI APIs)
  • Custom CLI commands via AppExecutionAlias
  • Controlled access to camera, microphone, location, and other devices (with user consent)
  • Background tasks (run when app is closed)
  • File type associations (open .xyz files with your app)
  • Startup tasks (launch at Windows login)
  • App services (expose APIs to other apps)
  • Clean install/uninstall & auto-updates

✏️ Get started

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:

  • Packaging an EXE/CLI: step by step guide of packaging an existing exe/cli as MSIX
  • MAUI (Windows): package and sign .NET MAUI Windows outputs with the generated resizetizer manifest
  • Electron JS/TypeScript bindings (npm only): opt into auto-generated WinRT bindings via winapp init --add-js-bindings. See task-focused guides:
    • File picker — open native Windows file/folder pickers from the renderer
    • Toast notifications — show Windows toasts with actions
    • Phi Silica (on-device LLM) — local text generation via Windows AI
    • WinML inference — run ONNX models with the Windows ML runtime

Installation

WinGet

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

NPM

You can install the CLI for Electron projects via NPM:

npm install @microsoft/winappcli --save-dev

GitHub Actions / Azure DevOps

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 Release Manually

Download the latest build from GitHub Releases

Install from latest build (main branch)

[!CAUTION] These builds are from the main branch 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:

  1. Go to the Build and Package workflow runs (filtered to successful builds on main)
  2. Click the most recent workflow run
  3. Scroll down to the Artifacts section and download what you need

Note: Downloading artifacts from GitHub Actions requires you to be signed in to GitHub.

Usage

Once installed (see Installation above), verify the installation by calling the CLI:

bash
winapp --help

or if using Electron/Node.js

bash
npx winapp --help

Commands Overview

Setup Commands:

  • new - Create a new WinUI app from an official Windows App SDK template
  • init - Initialize project with Windows SDK and App SDK
  • restore - Restore packages and dependencies
  • update - Update packages and dependencies to latest versions

App Identity & Debugging:

  • pack - Create MSIX packages from directories
  • run - Run app as a packaged application for debugging (loose layout registration)
  • create-debug-identity - Add sparse package identity to an existing exe
  • embed-identity - Connect an exe to its sparse identity package by embedding the `` element
  • unregister - Remove sideloaded dev packages registered by run or create-debug-identity
  • manifest - Generate and manage AppxManifest.xml files

See also: Debugging Guide — choosing between winapp run and create-debug-identity, IDE setup, and debugging scenarios.

Certificates & Signing:

  • cert - Generate and install development certificates
  • sign - Sign MSIX packages and executables
  • az-sign - Sign with Azure Trusted Signing (cloud-managed identity, no local PFX)
  • create-external-catalog - Generate CodeIntegrityExternal.cat for TrustedLaunch sparse packages

Development Tools:

  • tool - Access Windows SDK tools
  • store - Run Microsoft Store Developer CLI commands
  • get-winapp-path - Get paths to installed SDK components

Discovery (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 references
  • find-ui - Search WinUI controls & samples (WinUI 3 Gallery + Windows Community Toolkit; Reactor is opt-in via --source reactor) for a working code example

Node.js/Electron Specific:

  • node create-addon - Generate native C# or C++ addons
  • node add-electron-debug-identity - Add identity to Electron processes
  • node clear-electron-debug-identity - Remove identity from Electron processes

The full CLI usage can be found here: Documentation The full NPM usage can be found here: NPM Programmatic API Reference

Samples

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

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#clielectronidentitymsix

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具