Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/woocart/gsutil


https://github.com/woocart/gsutil

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.com/woocart/gsutil.svg?branch=master)](https://travis-ci.com/woocart/gsutil)

# gscp

gscp is a go application that lets you upload, download objects from Google Cloud Storage.

## Installation

Export `GOOGLE_APPLICATION_CREDENTIALS` to enviroment with path to your authentication file. You can follow https://cloud.google.com/docs/authentication/getting-started#setting_the_environment_variable for more detailed instructions.

Download gscp from `Releases`

## Examples

```shell
echo "test" | gscp stdio gs://bucket/test/files # read from stdin
echo "test" | gscp stdio gs://bucket/test/files key=value # set custom metadata
gscp gs://bucket/test/files stdio # read to stdout
```

```shell
usage: gscp [] [...]

Copies data from and to Google Cloud Storage

Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--version Show application version.

Args:
where to read from: gs://bucketname/path or - from stdin or /path/ for local file
Where to write to: gs://bucketname/path or - to stdout or /path/ for local file
[] KV pairs to append to uploaded object
```