1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages/common/gdrive.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

611 B

gdrive

Command-line tool to 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:

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}}