From bffff5ddf9117eaf7654e5bebba99c2d6f381563 Mon Sep 17 00:00:00 2001 From: "Jonathan F. Kuntz" Date: Thu, 5 Jul 2018 01:30:39 -0300 Subject: [PATCH] gdrive: add page (#2139) --- pages/common/gdrive.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/gdrive.md diff --git a/pages/common/gdrive.md b/pages/common/gdrive.md new file mode 100644 index 0000000000..3c433b4486 --- /dev/null +++ b/pages/common/gdrive.md @@ -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}}`