Command Structure
All WinGet commands follow this basic structure: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
- source - Manages package sources
- source add - Adds a new package source
- source list - Lists configured sources
- source update - Updates source data
- source remove - Removes a source
- source reset - Resets sources to default
Configuration Management
- configure - Applies a configuration file
- configure show - Shows configuration details
- configure list - Lists configuration history
- configure test - Tests a configuration
- configure validate - Validates configuration syntax
Import/Export
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:Displays help information for the command
Enables verbose logging output
Disables interactive prompts
Prompts user to press a key before exiting
Opens the logs directory after command execution
Exit Codes
0- Success1- Generic error0x8A150001- Package not found0x8A150002- No applicable installer found0x8A150011- User cancelled operation