On this page you find all important commands for the CLI tool curl. If the
command you are looking for is missing please ask our AI.
curl
curl is used in command lines or scripts to transfer data. curl is also used in cars, television sets, routers, printers, audio equipment, mobile phones, tablets, settop boxes, media players and is the Internet transfer engine for thousands of software applications in over ten billion installations.
List of commands for curl:
-
curl:headers:get Run a curl request and return the headers$ curl -I ${url}try on your machineexplain this command
-
curl:tldr:399e1 curl: Pass a username and password for server authentication.$ curl --user myusername:mypassword ${http:--example-com}try on your machineexplain this command
-
curl:tldr:3d839 curl: Send form-encoded data (POST request of type `application/x-www-form-urlencoded`). Use `--data @file_name` or `--data @'-'` to read from STDIN.$ curl --data ${'name=bob'} ${http:--example-com-form}try on your machineexplain this command
-
curl:tldr:4500b curl: Download the contents of a URL to a file.$ curl ${http:--example-com} --output ${filename}try on your machineexplain this command
-
curl:tldr:540ac curl: Pass client certificate and key for a resource, skipping certificate validation.$ curl --cert ${client-pem} --key ${key-pem} --insecure ${https:--example-com}try on your machineexplain this command
-
curl:tldr:5ed9f curl: 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 --versiontry on your machineexplain this command
-
curl:tldr:aeb75 curl: Download a file, saving the output under the filename indicated by the URL.$ curl --remote-name ${http:--example-com-filename}try on your machineexplain this command
-
curl:tldr:d1adb curl: Send data in JSON format, specifying the appropriate content-type header.$ curl --data ${'{"name":"bob"}'} --header ${'Content-Type: application-json'} ${http:--example-com-users-1234}try on your machineexplain this command
-
curl:tldr:feb19 curl: Send a request with an extra header, using a custom HTTP method.$ curl --header ${'X-My-Header: 123'} --request ${PUT} ${http:--example-com}try on your machineexplain this command
-
curl:warp:2450e4dd99f7f77e9479659d4061a538 cURL a URL and follow redirects$ curl -L ${url}try on your machineexplain this command
-
curl:warp:9d42768e9a94bd536acbafafe8adeb28 POST JSON data with cURL$ curl --header "Content-Type: application/json" \
$ --request POST \
$ --data '${json_data}' \
$ ${url}try on your machineexplain this command -
curl:warp:ddb2d3519798374d4b76ef0160a84b72 Set an Bearer authorization header with a cURL request$ curl -H "Authorization: Bearer ${access_token}" ${url}try on your machineexplain this command
-
curl:warp:deb495d28649d13fee28d0d983995b46 Set an OAuth authorization header with a cURL request$ curl -H "Authorization: OAuth ${access_token}" ${url}try on your machineexplain this command
-
curl:warp:e6fb89c914b5eed3543d4bf3696cb97d Attach a header to an HTTP request with cURL$ curl --header "${header}" ${url}try on your machineexplain this command
-
curl:warp:f69f37e58240c5cc6c3a6cc3844d3cab Display request headers from a cURL request$ curl -v ${url}try on your machineexplain this command
-
git-am:tldr:f6cb7 git-am: Apply and commit changes following a remote patch file.$ curl -L ${https:--example-com-file-patch} | git applytry on your machineexplain this command
-
git:warp:f0631 Clone all repos in a GitHub Organization$ curl -s -H "Authorization: token ${auth_token}" "https://api.github.com/orgs/${org}/repos?page=${page}&per_page=100" | jq -r ".[].clone_url" | xargs -L1 git clonetry on your machineexplain this command
-
promtool:tldr:33cd4 promtool: Pass Prometheus metrics over `stdin` to check them for consistency and correctness.$ curl --silent ${http:--example-com:9090-metrics-} | promtool check metricstry on your machineexplain this command
-
rustup-init.sh:tldr:b91cd rustup-init.sh: Download and run `rustup-init` to install `rustup` and the default Rust toolchain.$ curl https://sh.rustup.rs -sSf | sh -stry on your machineexplain this command
-
viu:tldr:d4cbc viu: Render an image or GIF from the internet using `curl`.$ curl -s ${https:--example-com-image-png} | viu -try on your machineexplain this command
-
wordpress:cli:install Install the WordPress CLI tool.$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
$ chmod +x wp-cli.phar
$ sudo mv wp-cli.phar ${dir_to_install}try on your machineexplain this command -
zek:tldr:c8162 zek: Generate a Go struct from a given XML from `stdin` and send output to a file.$ curl -s ${https:--url-to-xml} | zek -o ${path-to-output-go}try on your machineexplain this command