Skip to content

Instantly share code, notes, and snippets.

@mherrmann
Last active June 10, 2024 08:18
Show Gist options
  • Save mherrmann/310faa5b2dc8c1879253915826a2b6fb to your computer and use it in GitHub Desktop.
Save mherrmann/310faa5b2dc8c1879253915826a2b6fb to your computer and use it in GitHub Desktop.
doskey POST=curl -L --request POST https://api.winget.pro/api/v1/$1/ --user 'user:password' $*
POST packages \
--form "name=Visual Studio Code" \
--form "publisher=Microsoft Corporation" \
--form "description=Free code editor" \
--form identifier=XP9KHM4BK9FZ7Q
POST versions \
--form package=30 \
--form version=0.0.1
POST installers \
--form file=@file.exe \
--form architecture=x86 \
--form type=exe \
--form scope=user \
--form version=40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment