Hacker News new | ask | show | jobs
by vadfa 1655 days ago
"iwr https://chocolatey.org/install.ps1 | iex" installs chocolatey without having to open IE
1 comments

I see. That's why my comment was worded so carefully: though I'm sure one _could_ install chocolatey from the Windows CLI, a tiny minority ever would do so.

But that's for introducing me to the iwr command. I don't use Windows often, but it's good to know what tools are available in the rare instances that I need to. Now I need a mnemonic to remember it... "I Want Real (curl)"

Invoke Web Request is another good one, considering iwr is just an alias for the PowerShell cmdlet Invoke-WebRequest.
C:\Windows\System32\curl.exe exists if you want real curl. (or just run curl from a command prompt. curl in powershell is an alias for iwr.
Its 5 years outdated tho, better use this, always up to date:

https://community.chocolatey.org/packages/curl