AkkeyLab / gcs-upload-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GCS Upload CLI

Installation

$ brew install --cask google-cloud-sdk
$ echo "source $(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" >>~/.zshrc
$ echo "source $(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc" >>~/.zshrc
$ source ~/.zshrc
$ gcloud auth login

Usage

$ pwd
$ /Users/akkeylab

$ ./gcs_upload_cli.sh ./example/assets example.com/assets

$ /Users/akkeylab/*.png
$ gs://example.com/assets/
$ ...
$ /Users/akkeylab/example/*.png
$ gs://example.com/assets/example/
$ ...
$ /Users/akkeylab/example/assets/*.png
$ gs://example.com/assets/example/assets/
$ ...

License

GCS Upload CLI is available under the MIT license. See the LICENSE file for more info

About

License:MIT License


Languages

Language:Shell 100.0%