Export and Reinstall Your Apps with winget export / import
Snapshot installed applications into a JSON file and batch-reinstall them on a fresh Windows setup.
Run winget export -o apps.json to save your app list, then winget import -i apps.json on the new machine to install everything.
01Command
Command
$ winget export -o apps.json
winget import -i apps.json02What it does
winget export records every installed program that has a winget package ID, writing package IDs and versions into apps.json. On a new PC (or after a reset), winget import reads that file and installs each package in sequence — a one-command migration for the toolchain. Use --include-versions on export if exact versions matter.
03Risk
!Warning: Apps installed outside winget's known sources (e.g. some portable tools) are skipped — compare with winget list and install leftovers manually.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- winget export commandEvidence: Documents winget export writing installed packages to a JSON file and pairing it with winget import for installation on another machine.
Last verified: 2026-09-18 · Category: Developer