Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/woocart/gsutil
https://github.com/woocart/gsutil
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/woocart/gsutil
- Owner: woocart
- Created: 2018-07-17T20:18:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-30T10:32:21.000Z (about 5 years ago)
- Last Synced: 2024-06-20T10:15:59.183Z (7 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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
```