The Windows App Development CLI (winapp), a new open-source command-line tool intended to streamline the Windows application development lifecycle across various frameworks and toolchains, has been released by Microsoft in public preview This article explores development cli winapp. . Web developers using Electron, C++ developers using CMake, and other developers working outside of Visual Studio or MSBuild environments are the target audience for the winapp CLI.Programmers using Dart, Rust, or NET are creating Windows applications.
Setup and installation (source: Windows) By combining SDK management, manifest editing, certificate generation, and packaging requirements into a single command-line interface, the tool tackles the conventional complexity of Windows development. Important Attributes and Capabilities Environment Setup: By downloading SDK packages, creating projections (beginning with C++/WinRT), and setting up projects for development, the init command automates workspace bootstrapping.
While GitHub and Azure DevOps actions allow for automated CLI installation for CI/CD pipelines, the restore command recreates environment states for shared projects. Debugging Package Identity: It is now possible to test modern Windows APIs that require Package Identity, such as Windows AI APIs, Security, and Notifications, without the need for complete packaging and installation. By adding package identity to executables, the create-debug-identity command preserves current developer workflows.
Management of Manifest and Certificates: The CLI creates appxmanifest.xml and sets up development certificates automatically. Commands allow the creation of self-signed certificates with optional local installation, the creation of manifests from projects or executables, and updates to image assets. MSIX Packaging: Packing and signing are handled by the pack command, which creates store-ready or sideload-ready MSIX packages from build outputs.
Electron Integration: The CLI scaffolds native C++ or C# addons that are already set up for Windows App SDK and Windows SDK access. It is available as a npm package. By injecting Package Identity into active Electron processes, the node add-electron-debug-identity command allows API testing without the need for extra configuration.
For general use, use WinGet (winget install microsoft.winappcli), and for Electron projects, use npm (npm install --save-dev @microsoft/winappcli). The GitHub repository has issue tracking, documentation, and guides.












.webp%3Fw%3D1068%26resize%3D1068%2C0%26ssl%3D1&w=3840&q=75)