github wkentaro/gdown v6.1.0

3 hours ago

This release adds a new --json flag for inspecting Google Drive file and folder contents without downloading them.

Highlights

  • New --json flag lists the file or folder contents as a JSON array on stdout instead of downloading, so you can resolve filenames and IDs before fetching anything. It is in beta and its output format may change in a future release.

Features

  • Add a --json flag that prints file or folder contents as a JSON array of {"url", "path"} entries instead of downloading. Paths use POSIX separators on all platforms, and the flag cannot be combined with -O/--output. (#460, #463)

    # Resolve a single file's name without downloading it
    filename=$(gdown "$url" --json | jq -r '.[0].path')
    
    # List every file in a folder
    gdown https://drive.google.com/drive/folders/FOLDER_ID --folder --json
  • Add a skip_download parameter to download() that resolves the target filename and ID without fetching the file, returning a GoogleDriveFileToDownload. (#463)

  • --json now prints a one-time beta warning to stderr, which --quiet suppresses. (#465)

Other

  • Bump urllib3 from 2.6.3 to 2.7.0. (#457)
  • Bump idna from 3.11 to 3.15. (#459)
  • Configure agent skills for the repository (AGENTS.md, CLAUDE.md, docs/agents/). (#462)

Don't miss a new gdown release

NewReleases is sending notifications on new releases.