- Download Google Docs
- Download Google Drive Client For Windows
- Google Drive Linux Client Download
- Download Google Drive Client For Windows 10
Note
Upgrading to a paid Google Drive account will also increase your Gmail account storage limit to 25GB. Google plans to add more features to the service in coming months. Visit the download page to begin using Google’s new service. Visit this official announcement page for more information about the service. Download Google Drive. Gdrive 2 uses version 3 of the google drive api and my google-api-go-client fork is no longer needed. Gdrive 2 supports basic syncing. It only syncs one way at the time and works more like rsync than e.g. Files that are synced to google drive are tagged with an appProperty so that the files on drive can be traversed faster. Dec 22, 2016 If you’re using the Google Drive desktop client for Windows or macOS, you can save downloaded files directly to your local Google Drive folder and they will be uploaded to your Google Drive account automatically. However, using the Google Drive client uses space on your computer, which isn’t ideal if you’re low on space.
Overview
gdrive is a command line utility for interacting with Google Drive.
Prerequisites
None, binaries are statically linked.If you want to compile from source you need the go toolchain.Version 1.5 or higher.
Installation
With Homebrew on Mac
Other
Download
gdrive
from one of the links below. On unix systemsrun chmod +x gdrive
after download to make the binary executable.The first time gdrive is launched (i.e. run gdrive about
in yourterminal not just gdrive
), you will be prompted for a verification code.The code is obtained by following the printed url and authenticating with thegoogle account for the drive you want access to. This will create a token fileinside the .gdrive folder in your home directory. Note that anyone with accessto this file will also have access to your google drive.If you want to manage multiple drives you can use the global --config
flagor set the environment variable GDRIVE_CONFIG_DIR
.Example: GDRIVE_CONFIG_DIR='/home/user/.gdrive-secondary' gdrive list
You will be prompted for a new verification code if the folder does not exist.Downloads
Check our releases section.
Filename | Version | Description | Shasum |
---|---|---|---|
gdrive-osx-x64 | 2.1.0 | OS X 64-bit | 2d817cab0912e0efa5529ada7a4bb73fe90d2d74 |
gdrive-osx-386 | 2.1.0 | OS X 32-bit | ed1a12998270f8176c96729d80f3f7307a2e2db6 |
gdrive-linux-x64 | 2.1.0 | Linux 64-bit | 6ef7c740e980358a9a5de36c1aac7ea375319aa3 |
gdrive-linux-386 | 2.1.0 | Linux 32-bit | 03f423fc7a444e95de3998d24dbfbdb0335fd055 |
gdrive-linux-rpi | 2.1.0 | Linux Raspberry Pi | 0247d36e2591ea009ddbd003300bf10cb58089da |
gdrive-linux-arm64 | 2.1.0 | Linux arm 64-bit | 3a41c27e10587eef0be20fe00415c65723fa3aee |
gdrive-linux-arm | 2.1.0 | Linux arm 32-bit | 0247d36e2591ea009ddbd003300bf10cb58089da |
gdrive-linux-mips64 | 2.1.0 | Linux mips 64-bit | 69bdf4b9a4ae1f9ead9d35ba118a70005bea3829 |
gdrive-linux-mips64le | 2.1.0 | Linux mips 64-bit le | 421ae3662ed9b486649560512e3c8a43dbf6cdc6 |
gdrive-linux-ppc64 | 2.1.0 | Linux PPC 64-bit | 9b1621d1656fa8e4f2be21202708ab3bb8c0aa77 |
gdrive-linux-ppc64le | 2.1.0 | Linux PPC 64-bit le | 0bf501abb505f851a7592456db304f2c4430e9cd |
gdrive-windows-386.exe | 2.1.0 | Window 32-bit | 4974290122f635d9c71875bc2c760e46b943c5ab |
gdrive-windows-x64.exe | 2.1.0 | Windows 64-bit | 53780f9a4168c71fd9f3d429932207069d1dcf03 |
gdrive-dragonfly-x64 | 2.1.0 | DragonFly BSD 64-bit | 5871ee54f992b71b3a1586ec224d93a79265a8b4 |
gdrive-freebsd-x64 | 2.1.0 | FreeBSD 64-bit | ad4d16b0144b8fd05ef7f3174a54fe39b04a766d |
gdrive-freebsd-386 | 2.1.0 | FreeBSD 32-bit | cc636c839434689b73274e3574ac8477c9542880 |
gdrive-freebsd-arm | 2.1.0 | FreeBSD arm | 19abe4b23ad7dd968d0089313eca3108601dca02 |
gdrive-netbsd-x64 | 2.1.0 | NetBSD 64-bit | 07af67d4a149a926ee9ccf82591a593eb2330c36 |
gdrive-netbsd-386 | 2.1.0 | NetBSD 32-bit | 95a090ff3ecb8b6e2180afb02bec6ba7419a33e0 |
gdrive-netbsd-arm | 2.1.0 | NetBSD arm | b953d575f2c306053e31718050698c47388dea26 |
gdrive-openbsd-x64 | 2.1.0 | OpenBSD 64-bit | ac8dbed27ffd7ed0b13b2abb8be4b5ca72da9d7c |
gdrive-openbsd-386 | 2.1.0 | OpenBSD 32-bit | d7a2d1441d3b41e36da080643c3d5f6306181eae |
gdrive-openbsd-arm | 2.1.0 | OpenBSD arm | 9e508032367471515199f6787aa771e271d307f4 |
gdrive-solaris-x64 | 2.1.0 | Solaris 64-bit | c18612da275065064aa650b669de7140dcd94a5f |
gdrive-plan9-x64 | 2.1.0 | Plan9 64-bit | 8907f5ffb8c5d6b2e15cd9d8f5a51ef762173298 |
gdrive-plan9-386 | 2.1.0 | Plan9 32-bit | f60b749ba57b8b2d824d06a7bd788a8c5808a607 |
Compile from source
The gdrive binary should now be available at
$GOPATH/bin/gdrive
Gdrive 2
Gdrive 2 is more or less a full rewrite and is not backwards compatiblewith gdrive 1 as all the command line arguments has changed slightly.Gdrive 2 uses version 3 of the google drive api and my google-api-go-clientfork is no longer needed.
Syncing
Gdrive 2 supports basic syncing. It only syncs one way at the time and worksmore like rsync than e.g. dropbox. Files that are synced to google driveare tagged with an appProperty so that the files on drive can be traversedfaster. This means that you can't upload files with
gdrive upload
intoa sync directory as the files would be missing the sync tag, and would beignored by the sync commands.The current implementation is slow and uses a lot of memory if you aresyncing many files. Currently only one file is uploaded at the time,the speed can be improved in the future by uploading several files concurrently.To learn more see usage and the examples below.Service Account
Download Google Docs
For server to server communication, where user interaction is not a viable option,is it possible to use a service account, as described in this Google document.If you want to use a service account, instead of being interactively prompted forauthentication, you need to use the
--service-account <serviceAccountCredentials>
global option, where serviceAccountCredentials
is a file in JSON format obtainedthrough the Google API Console, and its location is relative to the config dir..gdriveignore
Placing a .gdriveignore in the root of your sync directory can be used toskip certain files from being synced. .gdriveignore follows the samerules as .gitignore, except that gdrive only reads the .gdriveignore file in the root of the sync directory, not ones in any subdirectories.
Usage
List files
List file in subdirectory