This utility library facilitates uploading folders to google cloud storage.
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
cloud-upload --bucketName test.example.com --keyFilename ./keyfile.json --sourceFolder lib --targetFolder my-project --predefinedAcl publicAccess