https://github.com/russellane/gdrive
Google Drive CLI
https://github.com/russellane/gdrive
drive gdrive google
Last synced: about 2 months ago
JSON representation
Google Drive CLI
- Host: GitHub
- URL: https://github.com/russellane/gdrive
- Owner: russellane
- License: mit
- Created: 2024-11-17T20:04:24.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-01-15T01:51:29.000Z (5 months ago)
- Last Synced: 2025-03-22T20:39:15.262Z (2 months ago)
- Topics: drive, gdrive, google
- Language: Python
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gdrive
```
usage: gdrive [--all-fields] [-h] [-H] [-v] [-V] [--config FILE]
[--print-config] [--print-url] [--completion [SHELL]]
COMMAND ...Google `drive` command line interface.
options:
--all-fields Use parms['fields'] = '*' (be verbose).Specify one of:
COMMAND
about Get information about the google user and drive.
download Download a file.
files List all files.
folders List all folders.
list List files and folders.
rename Rename file.
renamelist Rename list of files.
uploaddir Upload directories(s).
uploadfile Upload file(s).
uploadlist Upload list of files.General options:
-h, --help Show this help message and exit.
-H, --long-help Show help for all commands and exit.
-v, --verbose `-v` for detailed output and `-vv` for more detailed.
-V, --version Print version number and exit.
--config FILE Use config `FILE` (default: `~/.libgoogle.toml`).
--print-config Print effective config and exit.
--print-url Print project url and exit.
--completion [SHELL] Print completion scripts for `SHELL` and exit
(default: `bash`).See `gdrive COMMAND --help` for help on a specific command.
```## gdrive about
```
usage: gdrive about [-h] [--no-themes] [--pretty-print]about.description
options:
-h, --help Show this help message and exit.
--no-themes Remove theme elements; (implies --all-fields).
--pretty-print Pretty-print items.
```## gdrive download
```
usage: gdrive download [-h] FILE [NEWNAME]download.description
positional arguments:
FILE File to download.
NEWNAME Local name to assign.options:
-h, --help Show this help message and exit.
```## gdrive files
```
usage: gdrive files [-h] [-l | --pretty-print] [--limit LIMIT]files.description
options:
-h, --help Show this help message and exit.
-l, --long-listing Use a long listing format.
--pretty-print Pretty-print items.
--limit LIMIT Limit execution to `LIMIT` number of items.
```## gdrive folders
```
usage: gdrive folders [-h] [-l | --pretty-print] [--limit LIMIT]folders.description
options:
-h, --help Show this help message and exit.
-l, --long-listing Use a long listing format.
--pretty-print Pretty-print items.
--limit LIMIT Limit execution to `LIMIT` number of items.
```## gdrive list
```
usage: gdrive list [-h] [-t | -l | --pretty-print] [-f | -d] [-R]
[--limit LIMIT]
PATHlist.description
positional arguments:
PATH File or folder of items to list.options:
-h, --help Show this help message and exit.
-t, --time Use a time listing format.
-l, --long-listing Use a long listing format.
--pretty-print Pretty-print items.
-f, --files-only Show files only.
-d, --folders-only Show folders only.
-R, --recursive Recurse into any sub-folders, recursively.
--limit LIMIT Limit execution to `LIMIT` number of items.
```## gdrive rename
```
usage: gdrive rename [-h] src targetrename.description
positional arguments:
src File to rename.
target New name.options:
-h, --help Show this help message and exit.
```## gdrive renamelist
```
usage: gdrive renamelist [-h] listfilerenamelist.description
positional arguments:
listfile File with list of renames.options:
-h, --help Show this help message and exit.
```## gdrive uploaddir
```
usage: gdrive uploaddir [-h] [--add-timestamp] [--convert] [--no-convert]
[--target-folder TARGET_FOLDER]
[PATH ...]uploaddir.description
positional arguments:
PATH File to upload.options:
-h, --help Show this help message and exit.
--add-timestamp Bake a timestamp into the target name.
--convert Convert to google doc.
--no-convert Do not convert to google doc.
--target-folder TARGET_FOLDER
Root of destination tree.
```## gdrive uploadfile
```
usage: gdrive uploadfile [-h] [--add-timestamp] [--convert] [--no-convert]
PATH FOLDER [NEWNAME]uploadfile.description
positional arguments:
PATH File to upload.
FOLDER Destination folder.
NEWNAME New name for target file.options:
-h, --help Show this help message and exit.
--add-timestamp Bake a timestamp into the target name.
--convert Convert to google doc.
--no-convert Do not convert to google doc.
```## gdrive uploadlist
```
usage: gdrive uploadlist [-h] [--no-themes] [--add-timestamp] [--convert]
[--no-convert] [--target-folder TARGET_FOLDER]
listfileuploadlist.description
positional arguments:
listfile File with list of uploads.options:
-h, --help Show this help message and exit.
--no-themes Remove theme elements; (implies --all-fields).
--add-timestamp Bake a timestamp into the target name.
--convert Convert to google doc.
--no-convert Do not convert to google doc.
--target-folder TARGET_FOLDER
Destination folder.
```