2025-03-14 21:59:59 -06:00
|
|
|
# gdrive
|
|
|
|
|
|
|
|
|
|
> Interact with Google Drive.
|
|
|
|
|
> Folder/file ID can be obtained from the Google Drive folder or ID URL.
|
|
|
|
|
> More information: <https://github.com/gdrive-org/gdrive>.
|
|
|
|
|
|
|
|
|
|
- Upload a local path to the parent folder with the specified ID:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gdrive upload {{[-p|--parent]}} {{id}} {{path/to/file_or_folder}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|