1.0.15 • Published 12 months ago

save-to-drive v1.0.15

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Save To Drive

workflow npm version

Save To Drive is a small CLI application to upload files and folders to google drive.

Getting Started

  1. Set up your google cloud project and get your credentials.json file following How-to-get-the-credentials.json-file

  2. Install save-to-drive

npm i -g save-to-drive
  1. Create a JSON saves file following Saves-file or by checking the example files in data/ folder

  2. Learn about the available options

save-to-drive -h
  1. To start uploading an element using the saves file, run :
save-to-drive -s absolute/path/to/saves -c absolute/path/to/credentials.json

Tips

How to get the credentials.json file

You first need to create a google cloud project following https://developers.google.com/workspace/guides/create-project. Then, get your credentials.json file following https://developers.google.com/workspace/guides/create-credentials#oauth-client-id.

Saves file

Saves files are in JSON format following this structure:

  • path (str): Path of the element to save
  • options (array)
    • mimeType (str): mimeType of the element to save
    • deleteExisting (bool): delete first encountered file or folder with the same name as the element to save
    • baseFolderId (str): Id of the folder where the element to save will be uploaded
    • ignore (array): List of files and folders to ignore within the element to save
1.0.15

12 months ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago