LinuxCommandLibrary

gdrive

List files

TLDR

List files

$ gdrive list
copy
Upload file
$ gdrive upload [file.txt]
copy
Download file
$ gdrive download [file_id]
copy
Create folder
$ gdrive mkdir [foldername]
copy
Share file
$ gdrive share [file_id]
copy

SYNOPSIS

gdrive command [options] [arguments]

DESCRIPTION

gdrive is a command-line tool for Google Drive. It provides file management operations including upload, download, listing, and sharing directly from the terminal.
The tool authenticates via OAuth and stores credentials locally. It supports folder synchronization, recursive operations, and various output formats.
gdrive enables scriptable Google Drive operations for automation.

PARAMETERS

COMMAND

Operation: list, upload, download, mkdir, share, etc.
list
List files and folders.
upload FILE
Upload file.
download ID
Download file by ID.
mkdir NAME
Create folder.
share ID
Share file.
sync
Synchronize folder.
--help
Display help information.

CAVEATS

Requires OAuth authentication. API quotas apply. Not for large-scale operations.

HISTORY

gdrive was created as an unofficial command-line client for Google Drive, filling the gap left by Google's lack of an official Linux client.

SEE ALSO

rclone(1), gdown(1)

Copied to clipboard