Skip to content

ColombiaVIP/gdrive

 
 

Repository files navigation

gdrive

Overview

gdrive is a command line utility for interacting with Google Drive.

Important

  1. Enable https://console.cloud.google.com/marketplace/product/google/drive.googleapis.com
  2. https://console.cloud.google.com/apis/credentials and application type to be Desktop App give some name
  3. In "OAuth consent screen"; User type to External and publish
  4. Get the values for clientId and clientSecret
  5. For linux VM: https://console.cloud.google.com/home/dashboard?cloudshell=true

Edit and compile

  1. go version go1.19.1 linux/amd64
  2. Just edit the clientId and clientSecret in the file handlers_drive.go.
  3. ./compile
  4. ./gdrive_linux_amd64 about
./bin/gdrive_linux_amd64 about
Authentication needed
Go to the following url in your browser:
http://127.0.0.1:45137/authorize

Waiting for authentication response
  1. For remote boxes just do the authentication locally and copy the linux binary and ~/.config/gdrive/USERNAME_v2.json> to the remote box.

About

Google Drive CLI Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.9%
  • Shell 3.0%
  • Nix 0.1%