gcp-gcs

command
v0.0.0-...-3ca6755 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 12 Imported by: 0

README

gcp-gcs

Build Status Go Report Card License MIT

gcp-gcs reads and writes from/to Google Cloud Storage.

Installation

go install github.com/TV4/gcp-tools/cmd/gcp-gcs@latest

Usage

gcp-gcs [-credentials=<...>] -bucket=<...> <command>

  -bucket string
        bucket name
  -credentials string
        path to a GCP credentials file

  Commands:
    ls       [<prefix>]              Lists bucket objects, optionally filtered by the given prefix
    download <object> [<object>...]  Downloads given object(s) from the bucket
    upload   <file> [<file>...]      Uploads given file(s) to the bucket
    read     <object>                Reads a bucket object to stdout
    write    <object>                Writes a bucket object from stdin
    rm       <object> [<object>...]  Deletes the given object(s) from the bucket
    version                          Shows version info


GCP credentials file:
  https://developers.google.com/identity/protocols/application-default-credentials

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL