Skip to main content
The download command downloads the installer for a specified package without installing it.

Syntax

winget download [<query>] [options]

Arguments

query
string
Search query to find the package to download

Package Selection Options

--id
string
Filter by package identifier
--name
string
Filter by package name
--moniker
string
Filter by package moniker
-m, --manifest
path
Path to manifest file
-v, --version
string
Specific version to download
-s, --source
string
Source to search for the package
-e, --exact
flag
Use exact string matching for queries
--scope
string
Scope filter: user or machine
-a, --architecture
string
Select installer architecture: x86, x64, arm, arm64
--installer-type
string
Select installer type: msix, msi, exe, etc.
--locale
string
Locale to use (BCP-47 format)
--platform
string
Platform filter for Microsoft Store packages: Windows.Desktop, Windows.Universal, Windows.IoT, Windows.Team, Windows.Holographic
--os-version
string
Minimum OS version filter

Download Options

-d, --download-directory
path
Directory to save the downloaded installer. Defaults to current directory.
--ignore-security-hash
flag
Ignore installer hash validation
--skip-dependencies
flag
Skip downloading dependencies
--skip-microsoft-store-package-license
flag
Skip Microsoft Store package license download
--accept-package-agreements
flag
Accept all license agreements
--accept-source-agreements
flag
Accept all source agreements

Authentication

--header
string
Custom HTTP header for source requests
--authentication-mode
string
Authentication mode: silent, silentPreferred, interactive
--authentication-account
string
Account to use for authentication

Examples

Download a package to current directory:
winget download Microsoft.PowerToys
Download to specific directory:
winget download Microsoft.PowerToys --download-directory C:\Downloads
Download specific version:
winget download Microsoft.PowerToys --version 0.70.0
Download with architecture selection:
winget download Python.Python.3.11 --architecture x64
Download Microsoft Store app for specific platform:
winget download 9WZDNCRFJ3T2 --platform Windows.Desktop
Download without dependencies:
winget download Microsoft.PowerToys --skip-dependencies
Download with all agreements accepted:
winget download Microsoft.PowerToys --accept-package-agreements --accept-source-agreements

Output

The command downloads the installer and any dependencies to the specified directory. It also creates a JSON file with package metadata.
Downloading Microsoft.PowerToys...
Successfully downloaded installer to: C:\Downloads\PowerToysSetup-0.70.0-x64.exe

Exit Codes

  • 0 - Success
  • 0x8A150001 - Package not found
  • 0x8A150002 - No applicable installer
  • 0x8A150011 - User cancelled
The download command is useful for offline installations, caching installers, or distributing packages within an organization.

Build docs developers (and LLMs) love