infadroidmx / gdrive

Google Drive CLI Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gdrive

Overview

gdrive is a command line application for interacting with Google Drive. This is the successor of gdrive2, though at the moment only the most basic functionality is implemented.

Community

Join our discord server to discuss everything gdrive.

Sponsor

Help keep this project alive. By sponsoring the gdrive tier you will help support:

  • Keeping up with api changes
  • Development of new features
  • Fixing and answering of issues
  • Writing of guides and docs

Getting started

Requirements

  • Google OAuth Client credentials, see docs

Install binary

  • Download the latest binary from the release section
  • Unpack and put the binary somewhere in your PATH (i.e. /usr/local/bin on linux and macos)
  • Note that the binary is not code signed and will cause a warning on windows and macos when running. This will be fixed later, but for now you can find a workaround via you favorite search engine.

Add google account to gdrive

  • Run gdrive account add
  • This will prompt you for your google Client ID and Client Secret (see Requirements)
  • Next you will be presented with an url
  • Follow the url and give approval for gdrive to access your Drive
  • You will be redirected to http://localhost:8085 (gdrive starts a temporary web server) which completes the setup
  • Gdrive is now ready to use!

Using gdrive on a remote server

Part of the flow for adding an account to gdrive requires your web browser to access localhost:8085 on the machine that runs gdrive. This makes it tricky to set up accounts on remote servers. The suggested workaround is to add the account to you local machine first and then copy the configuration to the remote server. A account export and account import function will be added later to simplify this process.

About

Google Drive CLI Client


Languages

Language:Rust 100.0%