Skip to content

Export/Import apps list #220

@brunovieira97

Description

@brunovieira97

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.
  • 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

Metadata

Metadata

Assignees

Labels

ExperimentalThis experimental feature can be enabled in settingsIssue-FeatureThis is a feature request for the Windows Package Manager client.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions