$ go get "github.com/vegarsti/s3"
Set environment variables AWS_REGION
and AWS_BUCKET
, and store AWS credentials in ~/.aws/credentials
, as described in the documentation.
$ echo "hello" > hello.txt
$ s3 upload hello.txt
$ s3 list
hi.txt
hello.txt
$ rm hello.txt
$ s3 download hello.txt
$ cat hello.txt
hello
$ s3 delete hello.txt
$ s3 list
hi.txt