-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Description of the new feature/enhancement
Allow the user to export a list of all currently installed apps from WinGet.
This list can then be imported (with the specific versions too) on WinGet and its apps will be batch installed. Useful for a "dotfiles-based" computer setup, where I just have a winget-apps.json and can set my machine up with a single command.
Poposed commands:
winget export <app-list>
- Here the user can specify an app list for exporting, or use
--all
or*
for exporting the entire list.
- Here the user can specify an app list for exporting, or use
winget import <file-path>
Edited by denelon:
Stable Feature
winget import packages.json
- installs packages referenced in packages.json (requires sources to be configured).
winget import -?
- displays help for the import command.
Experimental Feature
winget export packages.json
- generates export file for packages in Add / Remove Programs matching installed sources.
winget export -?
- displays help for the export command.
Note: export depends on list also being enabled.
winget features
- displays all experimental features and their status
winget settings
- launches settings.json to configure settings like experimental features
Edited: experimental status