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
23.35k stars 1.45k forks source link

Allow winget download to accept -i #4954

Open Masamune3210 opened 2 weeks ago

Masamune3210 commented 2 weeks ago

Description of the new feature / enhancement

It would be really useful if winget download could import from a list and download the installer from all the packages stored inside. That way, it would be easier to do things like keep a offline backup of installers should one need it or to manually run the installer for the initial install so paths and settings can be configured as the user wants, to avoid everything being installed on the main OS partition, for instance

Proposed technical implementation details

Iterate through a list provided in import/export format, downloading the installer that best matches the system into either a default folder or a user specified one. Basically, just do the same as would be for the normal download command, but without having to manually specify each and every package individually