Command line

How to install app using winget on Windows 10

You can now install your favorite apps using commands with the new Windows Package Manager, and these are steps to complete the task.

Windows Package Manager (winget) on Windows 10

Windows 10 now includes the Windows Package Manager (winget), which is a tool that allows you to discover, install, upgrade, remove and configure apps on your device using command line. Technically, the tool is simply an interface to connect and use the Windows Package Manager service.

The service is still in preview, which means that you’ll need to be part of the Windows Insider Program with a machine enrolled in the Fast ring to access the tool.

In this guide, you’ll learn the steps to install an app using the winget command on Windows 10.

How to install app using Windows Package Manager

To install an app using the winget command, use these steps:

  1. Open Start on Windows 10.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to search the app and press Enter:

    winget search APP-NAME

    In the command, make sure to replace the APP-NAME for the name of the app that you’re trying to install. If you don’t know the exact name, you can search part of the name.

    For example, the following command winget search micro will return apps available from Microsoft and other apps that may contain the query in the name or ID:

    winget search micro
    

    Windows 10 winget search command
    Windows 10 winget search command
  4. Type the following command to install an app and press Enter:

    winget install APP-NAME

    In the command, make sure to change “APP-NAME” for the name of the app you want to install.

    For example, the following command installs the PowerToys app:

    winget install powertoys

    Windows 10 winget install command
    Windows 10 winget install command
  5. Continue with the on-screen directions (if applicable).

Once you complete the steps, the app will download and install on your device. If it’s a desktop application, after the package downloads, you may need to go through the installation experience like with other desktop apps.

You can use the Windows Package Manager without administrator privileges, but you’ll be prompted to elevate, and if you choose not to elevate, the installation will fail.

The winget command should be available in the latest preview of Windows 10 in the Fast ring, if it’s not, you may need to install the preview version of the App Installer from the Microsoft Store.

Alternatively, you can also winstall to create a script to install apps in bulk on Windows 10 using winget.