Microsoft Open-Sources winapp, a New CLI Tool for Streamlined Windows App Development
Microsoft has introduced the public preview of the Windows App Development CLI (winapp), an open-source command-line tool aimed at streamlining Windows application development across various frameworks and toolchains.
Microsoft has introduced the public preview of the Windows App Development CLI (winapp), an open-source command-line tool aimed at streamlining Windows application development across various frameworks and toolchains.
The tool is accessible on GitHub, catering to developers who work outside the traditional Visual Studio or MSBuild environments.
The winapp CLI supports developers using cross-platform frameworks such as Electron, .NET, C++, Rust, and Dart.
This tool simplifies the access to modern Windows APIs, including Windows AI APIs, security features, and shell integrations, directly from any development toolchain.
Traditional Windows development often requires managing multiple SDKs, editing manifests, generating certificates, and navigating complex packaging requirements. The winapp CLI consolidates these tasks into a unified command-line interface, enabling developers to concentrate on building applications rather than configuration management.
The tool is accessible on GitHub, catering to developers who work outside the traditional Visual Studio or MSBuild environments.
Environment Setup: The winapp init command automates workspace bootstrapping by downloading necessary SDK packages, generating C++/WinRT projections, and configuring projects with manifest creation, asset generation, certificate setup, and dependency management.
Package Identity for Debugging: Developers can use winapp create-debug-identity to add package identity to executables, facilitating immediate testing of APIs requiring Package Identity without full packaging and installation. This feature is essential for testing Windows AI APIs, Security, Notifications, and MCP Hosts.
Manifest and Certificate Management: The CLI automates the creation of appxmanifest.xml and development certificate setup. Commands like winapp manifest update-assets generate image assets in the correct aspect ratios, while winapp cert generate creates self-signed development certificates for testing.
MSIX Packaging: The winapp pack command simplifies application packaging by managing the packing and signing processes to produce store-ready or sideload-ready MSIX packages.
Electron Integration: Available as an npm package, the CLI includes winapp node add-electron-debug-identity for injecting Package Identity into Electron processes, enabling seamless Windows AI API integration through experimental NodeJS projections.
The winapp CLI is available via WinGet ( winget install microsoft.winappcli ) or npm ( npm install --save-dev @microsoft/winappcli ) with documentation and framework-specific guides on the GitHub repository.
Based on reporting by GBHackers.
