HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

curl — In PowerShell, this command may be an alias of `Invoke-WebRequest` when the original `curl` program

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandcurlthisclipowershellaliasmay
windows

Problem

How to use the curl command: In PowerShell, this command may be an alias of Invoke-WebRequest when the original curl program (<https://curl.se>) is not properly installed. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest>.

Solution

curl — In PowerShell, this command may be an alias of Invoke-WebRequest when the original curl program (<https://curl.se>) is not properly installed. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest>.

View documentation for the original curl command:
tldr curl {{[-p|--platform]}} common


View documentation for PowerShell's Invoke-WebRequest command:
tldr invoke-webrequest


Check whether curl is properly installed by printing its version number. If this command evaluates into an error, PowerShell may have substituted this command with Invoke-WebRequest:
curl --version

Code Snippets

View documentation for the original `curl` command

tldr curl {{[-p|--platform]}} common

View documentation for PowerShell's `Invoke-WebRequest` command

tldr invoke-webrequest

Check whether `curl` is properly installed by printing its version number. If this command evaluates into an error, PowerShell may have substituted this command with `Invoke-WebRequest`

curl --version

Context

tldr-pages: windows/curl

Revisions (0)

No revisions yet.