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.
npm install -g https://github.com/shaynlink/gdrive-cliThe configuration file is located at ~/.gdrive-cli.
{
"google_credentials_path": "/path/to/credentials.json",
"google_token_path": "/path/to/token.json"
}gdrive [command] [options]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.jsonTo enable debug mode, set the DEBUG environment variable to gdrive-cli.
DEBUG=gdrive-cli gdrive [command] [options]-
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 -
mkdir- Creata a new folder- Add -r / --recursion option to create nested folders