winget is the Windows Package Manager, a command-line tool that simplifies the process of managing software on Windows. Here’s how you can install it.

Usually, winget could be installed from Microsoft Store. However, if not found there, use github to install.

Install from GitHub

In some corporate environments, access to the Microsoft Store may be restricted. In such cases, you can download and install winget directly from the official GitHub repository.

  1. Go to the winget-cli GitHub releases page.

  2. Find the latest stable release.

  3. In the “Assets” section, download the .msixbundle file. Screenshot of winget bundle

  4. Open a PowerShell terminal with administrative privileges and run the following command, replacing <path-to-msixbundle> with the actual path to the downloaded file:

    Add-AppxPackage -Path <path-to-msixbundle>
    e.g.
    Add-AppxPackage -Path "D:\downloads\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
    

This will install winget on your system.

To use winget

  1. Get help
winget --help
  1. Check version
winget --version 
  1. Search app
winget search powershell

Screenshot of winget search

  1. Install app
winget install --id Microsoft.PowerShell.Preview --source winget