microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.53k stars 1.39k forks source link

Winget Configuration Export should support more than one ID #4485

Open KevinLaMS opened 1 month ago

KevinLaMS commented 1 month ago

Description of the new feature / enhancement

I want to be able to export more than one app.

I type in winget configuration export -o C:\temp\export.winget --package-id git.git Microsoft.VisualStudio

and fail.

or winget configuration export -o C:\temp\export.winget --package-id git.git --package-id Microsoft.VisualStudio Windows Package Manager (Preview) v1.8.1311-preview Copyright (c) Microsoft Corporation. All rights reserved.

Argument provided more times than allowed: 'package-id'

Proposed technical implementation details

Allow for more than one app to be submitted

denelon commented 1 month ago

The challenge with this is just exporting a list of package identifiers wouldn't allow for correlation with additional modules and resources that might need to have the correct dependency mapping with installers.