Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/au-re/gzip-upload

zip and post a folder to an endpoint
https://github.com/au-re/gzip-upload

Last synced: 8 days ago
JSON representation

zip and post a folder to an endpoint

Awesome Lists containing this project

README

        

# cloud upload

This utility library facilitates uploading folders to google cloud storage.

## Usage

options

|param|description |
|---|---|
|bucketName| name of the bucket on google cloud to upload to |
|sourceFolder|folder to read files from|
|targetFolder|folder (in the bucket) to write files to. The folder is created if it doesn't exist|
|predefinedAcl|what access control should the file receive, e.g. publicRead|
|keyFilename| name of the serviceKey file, you need this file |

example

```sh
cloud-upload --bucketName test.example.com --keyFilename ./keyfile.json --sourceFolder lib --targetFolder my-project --predefinedAcl publicAccess
```