Import a JSON file of apps to install. The import command combined with the export command allows the batch installation of applications.
Syntax WINGET import [-i] import-file [options] Commands: -i,--import-file JSON file describing the packages to install. Options --ignore-unavailable Suppress errors if the app requested is unavailable. --ignore-versions Ignore versions specified in the JSON file and install the latest available version. --accept-package-agreements Accept the license agreement, and avoid the prompt. --accept-source-agreements Accept the source license agreement, and avoid the prompt. --verbose-logs Override the logging setting and create a verbose log.
The import command is often used to share your developer environment or build up your PC image with your favorite apps.
The driving force behind the export command is the JSON file. You can find the schema for the JSON file here.
The JSON file includes the following hierarchy:Entry - Description
Sources - The sources application manifests come from.
Packages - The collection of packages to install.
PackageIdentifier - The Windows Package Manager package identifier used to specify the package.
Version [Optional] - The specific version of the package to install.
When the Windows Package Manager imports the JSON file, it attempts to install the specified applications in a serial fashion. If the application is not available or the application is already installed, it will notify the user of that case.
Import from myfiles.json:
C:\> WINGET import -i \demo\myfiles.json
“ Medical tourism can be considered a kind of import: instead of the product coming to the consumer, as it does with cars or sneakers, the consumer is going to the product” ~ James Surowiecki
GitHub repository
WINGET - Discover, install, upgrade, remove and configure applications on Windows computers.
MSIEXEC - Microsoft Windows Installer.
WUAUCLT - Windows Update.