Microsoft Launches Command Line Tool for Windows App Developers

ago 3 hours
Microsoft Launches Command Line Tool for Windows App Developers

Microsoft has introduced a new command line tool for Windows app developers, known as the Windows App Development CLI (winapp). Currently in public preview, this open-source utility aims to streamline the development process for Windows applications across various frameworks and environments.

Key Features of the Windows App Development CLI

The winapp CLI is specifically designed for developers working outside of Visual Studio or MSBuild. It caters to web developers using Electron, C++ programmers utilizing CMake, and developers working with .NET, Rust, or Dart. With this tool, Microsoft seeks to simplify the complexities associated with Windows app development.

One-Command Environment Setup

  • The CLI can initiate environment setup with a single command, ensuring a quick start.
  • Using the “init” command, developers can download necessary SDK packages, generate project projections, and configure their projects effortlessly.
  • Additional tasks like manifest and asset creation, certificate generation, and dependency management are automated.

Package Identity and Debugging

The winapp CLI simplifies the debugging process by enabling developers to add package identity to executables with just one command. This feature significantly reduces the time spent on manually configuring settings for testing single features of an application.

Manifest and Certificate Automation

  • Modern Windows applications need a valid manifest and a trusted development certificate.
  • The CLI automates the creation of these elements, ensuring developers can focus more on coding rather than configuration.
  • It can also install the development certificate locally for seamless testing.

Simplified Packaging Process

When it’s time to distribute applications, the winapp CLI allows for easy packaging. A single command can generate a ready-to-submit package, either for the Microsoft Store or for sideloading.

Electron Integration

For developers using Electron, Microsoft has packaged the winapp CLI as an npm package. This integration features commands that streamline the connection between Node.js and native Windows functionalities, making it simple to incorporate advanced features like AI capabilities in Electron apps.

How to Get Started

As this tool is still in its early stages, more features are anticipated in the future. Developers interested in utilizing the Windows App Development CLI can access it via GitHub or install it through the command line using:

winget install microsoft.winappcli

In conclusion, the Windows App Development CLI from Microsoft is an essential tool for developers looking to enhance their workflow and simplify app creation on Windows platforms.