package
0.0.0-20180403234405-3be5551c975d
Repository: https://github.com/guregodevo/golang-samples.git
Documentation: pkg.go.dev

# README

gcsupload

This is a simple CLI that allows you to upload a file to your Google Cloud Storage bucket.

Authentication

Please visit https://cloud.google.com/docs/authentication/getting-started

Installing it

go get -u github.com/GoogleCloudPlatform/golang-samples/storage/gcsupload

Using it

gcsupload -project orijtech-161805 -source ~/Desktop/birthdayPic.jpg -bucket orijtech-gcs-test

which will give you a result like this

URL: https://storage.googleapis.com/orijtech-gcs-test/birthdayPic.jpg
Size: 865096
MD5: 5b6c7b4aed837e8ed0f9950564a10b32