Microsoft Launches Open-Source WinApp CLI to Streamline Windows App Development
Microsoft has announced the public preview of WinApp CLI (winapp), an open-source command-line tool aimed at streamlining Windows app development. This tool is designed for developers who use various frameworks outside of Visual Studio or MSBuild.
Microsoft has announced the public preview of WinApp CLI (winapp), an open-source command-line tool aimed at streamlining Windows app development. This tool is designed for developers who use various frameworks outside of Visual Studio or MSBuild.
Available on GitHub , WinApp CLI caters to web developers using Electron, C++ developers using CMake, and those working with .NET, Rust, or Dart. It facilitates access to modern Windows APIs, including those related to AI, security, and shell features.
Traditionally, Windows development involves complex tasks such as SDK management, manifest editing, certificate generation, and packaging. WinApp CLI consolidates these processes into a single interface, allowing developers to focus on application logic. This preview release seeks user feedback to guide future enhancements.
Developers can initiate projects using the winapp init command, which automates the download of SDKs, generation of C++/WinRT projections, creation of manifests, assets, and certificates, and dependency management. This approach reduces manual errors.
For consistent team environments or CI/CD pipelines, the winapp restore command can replicate environments. Integration with GitHub/Azure DevOps actions facilitates automated setups.
Microsoft has announced the public preview of WinApp CLI (winapp), an open-source command-line tool aimed at streamlining Windows app development.
Modern APIs require package identity for security and AI features, traditionally needing full packaging for testing. The winapp create-debug-identity my-app.exe command simplifies this by adding identity to executables, enhancing debugging efficiency. Toolchain integration samples and guides are available.
Tasks like appxmanifest.xml and certificate generation are automated through winapp init , with specific commands for targeted tasks:
winapp manifest update-assets C:\images\my-logo.png : Updates manifest images with correct ratios. winapp cert generate : Creates and installs self-signed development certificates for sideloading.
For application distribution, the winapp pack ./my-app-files --cert ./devcert.pfx command produces MSIX files suitable for store or sideloading.
Electron users can utilize an npm package for scaffolding C++/C# add-ons with Windows App SDK access. Debugging is enhanced with the winapp node add-electron-debug-identity command, which facilitates the use of AI APIs. For more information, explore NodeJS AI projections .
Installation can be performed via winget install microsoft.winappcli or npm install --save-dev @microsoft/winappcli . Quick-start guides are available for Electron, .NET, C++/CMake , and Rust .
Microsoft is seeking feedback on GitHub to influence future updates. This tool aims to democratize Windows development, especially for applications focusing on security and package identity utilization.
Based on reporting by Cyber Security News.
