top | item 29417121

(no title)

vadfa | 4 years ago

"iwr https://chocolatey.org/install.ps1 | iex" installs chocolatey without having to open IE

discuss

order

dotancohen|4 years ago

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)"

alexchro93|4 years ago

Invoke Web Request is another good one, considering iwr is just an alias for the PowerShell cmdlet Invoke-WebRequest.

easton|4 years ago

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.