winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Able to import packages.json via a URL

Open casperiv0 opened this issue 4 years ago • 2 comments

Description of the new feature/enhancement

An way to import exported winget JSON data via a full URL (eg: GitHub, GitLab, etc)

Example URL: https://github.com/Dev-CasperTheGhost/dotfiles/blob/main/ms/winget-exports.json

Having a way to import it via a URL can be a lot easier then having to first download the file, and makes it a bit handier 😄

may be a dup of #1063?

casperiv0 avatar Jun 05 '21 09:06 casperiv0

[Policy] Command-Import

Trenly avatar Jun 16 '23 16:06 Trenly

I would love this as well. This would avoid having to run multiple commands to download and store the file, then import, then delete the temp file.

Another way to solve the problem would be to allow the JSON content to be provided via stdin, so we could pipe it directly from Invoke-WebRequest.

joffrey-bion avatar Sep 21 '24 23:09 joffrey-bion