Tech News

Microsoft Launches Open-Source WinApp CLI to Streamline Windows App Development

Microsoft has unveiled the public preview of WinApp CLI (winapp), a new open-source command-line tool designed to simplify Windows app development for developers using diverse frameworks outside Visual Studio or MSBuild.

Hosted on GitHub, the tool targets web devs with Electron, C++ experts on CMake, and .NET, Rust, or Dart builders, making modern Windows APIs—like AI, security, and shell features more accessible.

Traditional Windows development burdens developers with SDK management, manifest editing, certificate generation, and complex packaging.

WinApp CLI unifies these into a single interface, letting coders prioritize app logic over setup hassles. Still in early stages, Microsoft released this preview to gather real-world feedback and prioritize features.

Environment Setup (Source: Microsoft)

One-Command Environment Setup

Kickstart projects effortlessly with winapp init. This command downloads SDKs, generates C++/WinRT projections, creates manifests, assets, certificates, and handles dependencies, replacing error-prone manual steps.

For team consistency or CI/CD, run winapp restore to replicate environments. Integrate via GitHub/Azure DevOps actions for automated setups.

Modern APIs demand package identity for security and AI features, but testing often requires full packaging. WinApp CLI bypasses this: winapp create-debug-identity my-app.exe adds identity to executables, speeding up inner-loop debugging. Samples and guides show toolchain integrations.

Demo (Source: Microsoft)

Stumbling blocks like appxmanifest.xml and certs are automated. winapp init handles basics, while targeted commands shine:

  • winapp manifest update-assets C:\images\my-logo.png: Updates manifest images in correct ratios.
  • winapp cert generate: Creates and installs self-signed dev certs for sideloading.

Packaging for distribution? winapp pack ./my-app-files –cert ./devcert.pfx produces store- or sideload-ready MSIX files.

Electron users get an npm packagefor scaffolding C++/C# addons with Windows App SDK access. Debug viawinapp node add-electron-debug-identityto inject identity intonpm start`, enabling AI APIs like Phi Silica without plumbing. Explore NodeJS AI projections.

Install via winget install microsoft.winappcli or npm install –save-dev @microsoft/winappcli. Quick-start guides cover Electron, .NET, C++/CMake, and Rust.

Microsoft invites feedback on GitHub to shape future updates. This tool promises to democratize Windows development, especially for security-conscious apps leveraging package identity.

Follow us on Google News, LinkedIn, and X for daily cybersecurity updates. Contact us to feature your stories.

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

3 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

4 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

5 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

5 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

5 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

7 hours ago