2018-07-05 05:30:39 +01:00
|
|
|
# gdrive
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Interact with Google Drive.
|
2021-08-15 18:59:09 +01:00
|
|
|
> 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
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Upload a local path to the parent folder with the specified ID:
|
2018-07-05 05:30:39 +01:00
|
|
|
|
|
|
|
`gdrive upload -p {{id}} {{path/to/file_or_folder}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Download file or directory by ID to current directory:
|
2018-07-05 05:30:39 +01:00
|
|
|
|
|
|
|
`gdrive download {{id}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Download to a given local path by its ID:
|
2018-07-05 05:30:39 +01:00
|
|
|
|
|
|
|
`gdrive download --path {{path/to/folder}} {{id}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Create a new revision of an ID using a given file or folder:
|
2018-07-05 05:30:39 +01:00
|
|
|
|
|
|
|
`gdrive update {{id}} {{path/to/file_or_folder}}`
|