LinuxCommandLibrary

gdown

command-line Google Drive downloader

TLDR

Download from Google Drive

$ gdown [https://drive.google.com/uc?id=FILE_ID]
copy
Download by ID
$ gdown [file_id]
copy
Download folder
$ gdown --folder [https://drive.google.com/drive/folders/FOLDER_ID]
copy
Output to file
$ gdown [file_id] -O [output.zip]
copy
Fuzzy search
$ gdown --fuzzy [https://drive.google.com/...]
copy

SYNOPSIS

gdown [options] urlorid

DESCRIPTION

gdown is a command-line tool for downloading files and folders from Google Drive, providing wget/curl-like functionality specifically for Drive URLs. It automatically handles Google Drive's download mechanisms, including the virus scan confirmation step that large files require, making automated downloads possible.
The tool intelligently extracts file IDs from various Google Drive URL formats, whether they're sharing links, direct file URLs, or folder URLs. It can download individual files, entire folders recursively, and works with both public and shared links without requiring OAuth authentication for public content.
gdown is particularly popular in machine learning and data science workflows, where large datasets and model weights are frequently shared via Google Drive. It enables reproducible research pipelines and automated data fetching in scripts. The fuzzy matching option helps when URLs are embedded in redirects or formatted unusually.
For files requiring authentication or private Drive content, gdown's functionality is limited. It works best with publicly accessible shared files and folders, making it ideal for open datasets and model distributions.

PARAMETERS

URLORID

Google Drive URL or file ID.
-O FILE, --output FILE
Output filename.
--folder
Download entire folder.
--fuzzy
Enable fuzzy URL extraction.
-q, --quiet
Suppress output.
--help
Display help information.

CAVEATS

Rate limits may apply. Large downloads may fail. Some files require permission. Cannot download private files without authentication.

HISTORY

gdown was created to simplify Google Drive downloads, particularly for machine learning datasets. It provides wget/curl-like functionality for Drive URLs.

SEE ALSO

wget(1), curl(1), gdrive(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community