install command installs the specified application. You can also use the add alias.
Syntax
Arguments
Search query to find the package. Can match against package ID, name, or moniker.
Package Selection Options
Filter by package identifier (exact match with —exact)
Filter by package name
Filter by package moniker
Path to a manifest file for direct installation
Specify package version to install
Source to search for the package (e.g., “winget”, “msstore”)
Use exact string matching for queries
Installation scope:
user or machineSelect installer architecture:
x86, x64, arm, arm64Select installer type:
msix, msi, exe, inno, nullsoft, wix, burn, portableLocale to use (BCP-47 format, e.g., en-US)
Installation Behavior
Run installer in interactive mode
Run installer in silent mode
Path to write installer log file
Installation directory (if supported by installer)
Override installer arguments
Additional arguments to pass to installer
Override installer hash check failures and compatibility checks
Ignore installer hash validation (not recommended)
Skip malware scan for local archive installers
Accept all license agreements
Accept all source agreements
Rename executable (for portable packages)
Skip package upgrade if already installed
Uninstall previous version before installing
Allow installer to request a reboot
Dependencies
Skip dependency installation
Source to search for dependencies
Authentication
Custom HTTP header for source requests
Authentication mode:
silent, silentPreferred, interactiveAccount to use for authentication
Examples
Install a package by ID:Exit Codes
0- Success0x8A150001- Package not found0x8A150002- No applicable installer0x8A150011- User cancelled0x8A150014- Package already installed with —no-upgrade
If a package is already installed and you don’t use
--force, WinGet will attempt to upgrade it instead.