Skip to content
TurboDL

CLI

Request options

Method, headers, body, cookies, authentication, proxy… curl-style.

These options are added to the download command and override the profile.

OptionPurpose
-X, --method METHODHTTP method (GET by default)
-H, --header "Name: value"Header, repeatable; ${VAR} is replaced by the environment variable
-d, --data TEXTText body
--data-file FILEBody read from a file
--json JSONJSON body (adds Content-Type: application/json)
-b, --cookie "a=1; b=2"Cookies
--cookies-file FILEcookies.txt file in Netscape format
-u, --user name[:password]Basic authentication; the password is asked when missing
-e, --referer URLReferer header
-A, --user-agent UAUser-Agent
--proxy URLhttp://, https:// or socks5:// proxy
--max-redirs NMaximum redirects (10 by default)
--timeout SECONDSTimeout
-k, --insecureAccepts any TLS certificate (dangerous)
-o, --output NAMEFinal file name (without folder)

--data, --data-file and --json are mutually exclusive.

Methods other than GET

A POST (or PUT…) is never replayed per segment: it is sent once and downloaded in a single stream, to avoid side effects on the server.

Example

turbodl-cli default https://api.example.com/export \
  -X POST --json '{"format":"csv"}' \
  -H "Authorization: Bearer ${API_TOKEN}" \
  -o export.csv