How to export and import apps with winget on Windows 11, 10

The Windows Package Manager tool lets you export and import apps in bulk, and in this guide, you will learn how.

winget export and import commands
winget export and import commands

The Windows Package Manager (winget) command-line tool includes the “export” and “import” options to create a list of apps installed on your computer to a JSON file, which you can then use to install those apps on a new setup or another device in bulk.

On Windows 11 as well as Windows 10, winget is a tool to save you time and frustration by automating the process of searching, downloading, installing, upgrading, and configuring software on your computer.

In this guide, you will learn the steps to use the Windows Package Manager tool to export and import apps on Windows 10 and 11.

Export apps with winget command

To export a list of installed apps with the winget command on Windows 11, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to use winget to export installed apps to a JSON file and press Enter:

    winget export -o PATH\TO\EXPORT.JSON

    In the command, replace PATH\TO\EXPORT.JSON for the path and file name to export the list of installed apps. You can also append the --include-versions option at the end of the command to include the version of the app you want to import. This example exports the installed apps into an exported.json file:

    winget export -o C:\files\exported.json

    winget export command

Once you complete the steps, the command will create a list in a JSON file containing all the apps installed on your computer, which you can then use to bulk-install the same apps in a new Windows installation or on a different device. However, the command will only export those available apps in the Windows Package Manager repository. The apps from the Microsoft Store or third-party sources won’t be exported using this command.

Import apps with winget command

To use the winget command to import apps from a JSON file on Windows 11 or 10, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to use winget to import apps from a JSON file and press Enter:

    winget import -i PATH\TO\IMPORT.JSON

    In the command, replace PATH\TO\IMPORT.JSON for the path and file name that includes the exported information. You can also append the --ignore-versions option at the end of the command to install the latest version of the apps. This example imports and installs apps listed inside the exported.json file:

    winget import -i C:\files\exported.json

    winget import command

After you complete the steps, the command will automatically check the list, download, and install all the apps. If the app is already installed, the command will skip the installation and continue with the rest of the JSON list.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 15 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 21 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].