Options
Command flags and global options for gURL
Command-Line Options
Explore the complete list of global flags and command-specific options for gurl.
Global Flags
| Flag | Description |
|---|---|
-k, --insecure | Allow insecure server connections |
--timeout <duration> | Request timeout (default: 30s) |
--max-redirects <int> | Maximum number of redirects to follow (default: 10) |
--wait-time <duration> | Wait for the specified duration before making the request |
Request Command Flags
| Flag | Description |
|---|---|
-X, --method <string> | HTTP method to use (default: GET) |
-d, --data <string> | Request body data |
-H, --header <string[]> | Custom request headers |
-v, --verbose | Show detailed request/response output |
-o, --output <string> | Write response to a file |
-j, --json | Format and colorize JSON response |
-L, --follow | Automatically follow redirects |
--json-request | Set Content-Type to application/json |
--form | Set Content-Type to application/x-www-form-urlencoded |
--no-pretty | Disable pretty JSON output formatting |
Download Command Flags
| Flag | Description |
|---|---|
-o, --output <string> | Save file with the specified name |
-P, --directory <string> | Save file to the given directory |
-c, --continue | Resume partially downloaded files |
-q, --quiet | Quiet mode – hide progress bar |
-k, --insecure | Allow insecure connections |
-t, --timeout <duration> | Set download timeout (default: 30s) |
-n, --no-redirect | Do not follow redirects |
--max-redirects <int> | Max number of redirects to follow (default: 10) |
-r, --tries <int> | Retry attempts (default: 3, 0 disables retries) |
--retry-delay <duration> | Wait time between retries (default: 2s) |
These options give you full control over how gURL behaves—from crafting HTTP requests to downloading files and debugging APIs. Use them to fine-tune your experience and build powerful workflows.