AvatargURL

Download Command

Learn how to use gURL to download files with various options

Downloading Files with gURL

gURL makes downloading files from the internet easy and flexible. Below are some common use cases for the gurl download command.

Basic File Download

To download a file from a URL, use:

gurl download https://example.com/file.zip

Specify Output Filename

You can specify the name of the output file using -o:

gurl download -o myfile.zip https://example.com/file.zip

Save to a Specific Directory

To save the downloaded file to a specific folder, use the -P flag:

gurl download -P ./downloads/ https://example.com/file.zip

Resume Partial Downloads

If a download was interrupted, you can resume it using the -c flag:

gurl download -c https://example.com/large-file.iso

Quiet Mode (No Progress Bar)

Suppress all output and progress bars for silent downloads:

gurl download -q https://example.com/file.zip

Retry on Failure

To automatically retry a failed download, use --tries with an optional --retry-delay:

gurl download --tries 5 --retry-delay 5s https://example.com/file.zip

Set Custom Timeout

To set a timeout for the download operation, use -t:

gurl download -t 60s https://example.com/large-file.iso

On this page