2018-07-05 05:30:39 +01:00
|
|
|
# gdrive
|
|
|
|
|
|
|
|
> Command line tool to interact with Google Drive.
|
|
|
|
> Folder/file id can be obtained from the Google Drive folder or id url.
|
2019-06-07 11:58:21 +01:00
|
|
|
> More information: <https://github.com/gdrive-org/gdrive>.
|
2018-07-05 05:30:39 +01:00
|
|
|
|
|
|
|
- Upload a local path to the parent folder with the specified id:
|
|
|
|
|
|
|
|
`gdrive upload -p {{id}} {{path/to/file_or_folder}}`
|
|
|
|
|
|
|
|
- Download file or directory by id to current directory:
|
|
|
|
|
|
|
|
`gdrive download {{id}}`
|
|
|
|
|
|
|
|
- Download to a given local path by its id:
|
|
|
|
|
|
|
|
`gdrive download --path {{path/to/folder}} {{id}}`
|
|
|
|
|
|
|
|
- Create a new revision of an id using a given file or folder:
|
|
|
|
|
|
|
|
`gdrive update {{id}} {{path/to/file_or_folder}}`
|