Skip to content

Options Reference

Complete reference of all orb command-line options.

orb [OPTIONS] <URL>
OptionDescription
-X, --request <METHOD>HTTP method (GET, POST, PUT, DELETE, etc.). Default: GET
-H, --header <HEADER>Add header in Name: Value format. Can be used multiple times
-d, --data <DATA>Request body. Use @filename to read from file
--json <JSON>Send JSON data (sets Content-Type: application/json)
-F, --form <FIELD>Multipart form field. Use field=@file for file upload
OptionDescription
-u, --user <USER:PASS>HTTP Basic authentication
--bearer <TOKEN>Bearer token authentication
OptionDescription
-b, --cookie <DATA>Send cookies. Use @filename to read from file
-c, --cookie-jar <FILE>Save cookies to file (Netscape format)
OptionDescription
-o, --output <FILE>Write response body to file
-i, --includeInclude response headers in output
-I, --headShow response headers only (HEAD request)
-v, --verboseVerbose mode (show request/response details)
-s, --silentSilent mode (suppress all output except body)
-w, --write-outShow statistics (http_code, size, timing)
-#, --progressShow progress bar
OptionDescription
-k, --insecureSkip certificate verification
--cert <FILE>Client certificate file (PEM)
--key <FILE>Client certificate key file (PEM)
--cacert <FILE>CA certificate file (PEM)
OptionDescription
--http1.1Force HTTP/1.1
--http2Force HTTP/2
--http3Force HTTP/3 (QUIC)
OptionDescription
--compressedAccept and decompress responses (zstd, br, gzip, deflate)
--compress-algo <ALGO>Request specific algorithm: gzip, deflate, brotli, zstd
OptionDescription
--connect-timeout <SECS>Connection timeout in seconds. Default: 10
-m, --max-time <SECS>Maximum total request time in seconds
-L, --locationFollow redirects
--max-redirs <NUM>Maximum redirects to follow. Default: 10
OptionDescription
-x, --proxy <URL>Proxy URL (http:// or socks5://)
--connect-to <RULE>Override DNS: HOST1:PORT1:HOST2:PORT2
OptionDescription
-A, --user-agent <STRING>Custom User-Agent header
-e, --referer <URL>Set Referer header
OptionDescription
--ws-message <MSG>Send WebSocket message and exit

Specify the HTTP method. Can be any valid method:

Terminal window
orb -X POST https://example.com
orb -X PUT https://example.com
orb -X DELETE https://example.com
orb -X PATCH https://example.com
orb -X OPTIONS https://example.com

Add custom headers. Can be used multiple times:

Terminal window
orb -H "Authorization: Bearer token" \
-H "Accept: application/json" \
-H "X-Custom: value" \
https://example.com

Send request body data. Sets Content-Type: application/x-www-form-urlencoded:

Terminal window
# Inline data
orb -d "key=value&other=data" https://example.com
# From file
orb -d @payload.txt https://example.com

Send JSON data. Sets Content-Type: application/json:

Terminal window
orb --json '{"name": "Alice"}' https://example.com

Send multipart form data:

Terminal window
# Text field
orb -F "name=Alice" https://example.com
# File upload
orb -F "file=@document.pdf" https://example.com
# Multiple fields
orb -F "name=Alice" -F "avatar=@photo.jpg" https://example.com

HTTP Basic authentication:

Terminal window
orb -u username:password https://example.com
orb -u username: https://example.com # Empty password

Bearer token authentication:

Terminal window
orb --bearer "eyJhbGciOi..." https://example.com

Send cookies:

Terminal window
# Inline cookie
orb -b "session=abc123" https://example.com
# From file (Netscape format)
orb -b @cookies.txt https://example.com

Save response cookies to file:

Terminal window
orb -c cookies.txt https://example.com

Save response body to file:

Terminal window
orb -o response.json https://api.example.com
orb -o file.zip https://example.com/file.zip

Show detailed request/response information:

Terminal window
orb -v https://example.com

Suppress all output except response body:

Terminal window
orb -s https://example.com > response.txt

Show request statistics:

Terminal window
orb -w https://example.com
# Output: http_code: 200, size_download: 1234, time_total: 0.456

Skip TLS certificate verification:

Terminal window
orb -k https://self-signed.example.com

Client certificate for mTLS:

Terminal window
# Combined file
orb --cert combined.pem https://example.com
# Separate files
orb --cert client.pem --key client-key.pem https://example.com

Custom CA certificate:

Terminal window
orb --cacert ca.pem https://internal.example.com

Force specific HTTP protocol version:

Terminal window
orb --http1.1 https://example.com
orb --http2 https://example.com
orb --http3 https://example.com # Requires server support

Accept compressed responses:

Terminal window
orb --compressed https://example.com
# Sends: Accept-Encoding: zstd, br, gzip, deflate

Set timeouts:

Terminal window
orb --connect-timeout 5 -m 30 https://example.com

Follow redirects:

Terminal window
orb -L https://httpbin.org/redirect/3
orb -L --max-redirs 5 https://example.com

Use a proxy:

Terminal window
orb -x http://proxy:8080 https://example.com
orb -x socks5://proxy:1080 https://example.com

Override DNS routing:

Terminal window
orb --connect-to "api.example.com:443:localhost:8443" https://api.example.com

Send a WebSocket message:

Terminal window
orb wss://echo.websocket.org --ws-message "Hello!"