1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/gdrive.md

22 lines
611 B
Markdown
Raw Normal View History

2018-07-05 01:30:39 -03: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 01:30:39 -03:00
- Upload a local path to the parent folder with the specified ID:
2018-07-05 01:30:39 -03:00
`gdrive upload -p {{id}} {{path/to/file_or_folder}}`
- Download file or directory by ID to current directory:
2018-07-05 01:30:39 -03:00
`gdrive download {{id}}`
- Download to a given local path by its ID:
2018-07-05 01:30:39 -03:00
`gdrive download --path {{path/to/folder}} {{id}}`
- Create a new revision of an ID using a given file or folder:
2018-07-05 01:30:39 -03:00
`gdrive update {{id}} {{path/to/file_or_folder}}`