Skip to content

shaynlink/gdrive-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gdrive CLI

Gdrive CLI is a command line tool for interacting with Google Drive.

⚠️ Note: This is a work in progress. The tool is not yet fully functional.

Installation

npm install -g https://github.com/shaynlink/gdrive-cli

Configuration file

The configuration file is located at ~/.gdrive-cli.

{
  "google_credentials_path": "/path/to/credentials.json",
  "google_token_path": "/path/to/token.json"
}

Usage

gdrive [command] [options]

Basic authentification (beta)

Get google cloud credential and google token paths

gdrive config-set google_credentials_path /path/to/credentials.json
gdrive config-set google_token_path /path/to/token.json

Debug

To enable debug mode, set the DEBUG environment variable to gdrive-cli.

DEBUG=gdrive-cli gdrive [command] [options]

Commands

  • auth - Authenticate with Google Drive
  • ls - List files in Google Drive
  • upload - Upload a file to Google Drive
  • config-set - Set configuration options
  • config-get - Get configuration options
  • config-list - List configuration options
  • copy-all - Copy all files from one folder to another
  • copy - Copy a file from one folder to another
  • help - Display help information
  • file - Display file information
  • move-all - Move all files from one folder to another
  • move - Move a file from one folder to another
  • [] remove - Remove a file from Google Drive
  • [] remove-all - Remove all files from Google Drive

About

A CLI for Google Drive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published