Skip to main content
Windows Package Manager (WinGet) is a command-line tool that enables you to discover, install, upgrade, remove, and configure applications on Windows devices.

Command Structure

All WinGet commands follow this basic structure:
winget [command] [options]

Available Commands

Package Management

  • install - Installs a package
  • uninstall - Uninstalls a package
  • upgrade - Upgrades installed packages
  • download - Downloads a package installer
  • list - Lists installed packages
  • search - Searches for available packages
  • show - Shows package information
  • pin - Manages package pins to block upgrades

Source Management

Configuration Management

Import/Export

  • export - Exports installed packages to JSON
  • import - Installs packages from JSON file

Utilities

  • validate - Validates a manifest file
  • hash - Generates SHA256 hash for installers
  • settings - Opens or manages settings
  • features - Shows experimental features

Global Options

These options are available for all commands:
--help
flag
Displays help information for the command
--verbose-logs
flag
Enables verbose logging output
--disable-interactivity
flag
Disables interactive prompts
--wait
flag
Prompts user to press a key before exiting
--logs
flag
Opens the logs directory after command execution

Exit Codes

  • 0 - Success
  • 1 - Generic error
  • 0x8A150001 - Package not found
  • 0x8A150002 - No applicable installer found
  • 0x8A150011 - User cancelled operation

Examples

View version information:
winget --version
View system information:
winget --info
Get help for any command:
winget install --help

Build docs developers (and LLMs) love