gdrive: add page (#2139)
This commit is contained in:

committed by
Agniva De Sarker

parent
63cbce3b21
commit
bffff5ddf9
20
pages/common/gdrive.md
Normal file
20
pages/common/gdrive.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# gdrive
|
||||||
|
|
||||||
|
> Command line tool to interact with Google Drive.
|
||||||
|
> Folder/file id can be obtained from the Google Drive folder or id url.
|
||||||
|
|
||||||
|
- 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}}`
|
Reference in New Issue
Block a user