download command downloads the installer for a specified package without installing it.
Syntax
Arguments
Search query to find the package to download
Package Selection Options
Filter by package identifier
Filter by package name
Filter by package moniker
Path to manifest file
Specific version to download
Source to search for the package
Use exact string matching for queries
Scope filter:
user or machineSelect installer architecture:
x86, x64, arm, arm64Select installer type:
msix, msi, exe, etc.Locale to use (BCP-47 format)
Platform filter for Microsoft Store packages:
Windows.Desktop, Windows.Universal, Windows.IoT, Windows.Team, Windows.HolographicMinimum OS version filter
Download Options
Directory to save the downloaded installer. Defaults to current directory.
Ignore installer hash validation
Skip downloading dependencies
Skip Microsoft Store package license download
Accept all license agreements
Accept all source agreements
Authentication
Custom HTTP header for source requests
Authentication mode:
silent, silentPreferred, interactiveAccount to use for authentication
Examples
Download a package to current directory:Output
The command downloads the installer and any dependencies to the specified directory. It also creates a JSON file with package metadata.Exit Codes
0- Success0x8A150001- Package not found0x8A150002- No applicable installer0x8A150011- User cancelled
The download command is useful for offline installations, caching installers, or distributing packages within an organization.