Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
Zetro edited this page Mar 31, 2023 · 19 revisions

Installation

Windows

Download installer

Debian/Ubuntu

wget -O drive https://drive.google.com/uc?id=0B3X9GlR6Embnb095MGxEYmJhY2c
sudo install drive /usr/local/bin/drive

How to upload to a folder

Step 1: Create target folder

$ drive folder -t example  
**Id: 0B-HvcBoheyBnZndncFFMN1B1bjA**  
Title: example  
Size: 0.0 B  
Created: 2015-07-18 20:23:21  
Modified: 2015-07-18 20:23:20  
Owner: tesisquare pte  
Shared: False  
Parents: 0AOHvcBoheyBnUk9PVA  
Folder 'example' created  

Step 2: Upload file

$ drive upload -f soapui*.xml -p 0B-HvcBoheyBnZndncFFMN1B1bjA            
Id: 0B-HvcBoheyBnZVJqOUtNVVl2S0k  
Title: soapui-settings.xml  
Size: 2.4 KB  
Created: 2015-07-18 20:25:40  
Modified: 2015-07-18 20:25:40  
Owner: tesisquare pte  
Md5sum: da8227a1a6eb3ef49ec2f2844b48ba56  
Shared: False  
Parents: 0B-HvcBoheyBnZndncFFMN1B1bjA  
MIME Type: application/xml  
Uploaded 'soapui-settings.xml' at 1.2 KB/s, total 2.4 KB  

How to Create Query

How to get authenticated

It seems that this app has been blocked so you can't get an authorization key by going to the URL that is presented when you run it. The following workaround seems to work:

  1. Go to https://developers.google.com/oauthplayground.
  2. Under the Drive API v3, select one of the following APIs:
  1. Click Authorize APIs
  2. Click Exchange Authorization Codes for Token
  3. Copy the resulting Access token will allow you to run gdrive with --access-token. For some reason the Refresh token does not seem to work with --refresh-token.
Clone this wiki locally