datastore-tools

command module
v0.0.0-...-51e8c80 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: MIT Imports: 3 Imported by: 0

README

Google Cloud Datastore Tools

CLI for Google Cloud Datastore

Before you begin

  1. Create a service account.(roles: datastore.user)
  2. Save JSON key file

Installing the tools

go get github.com/keitaro1020/datastore-tools
cd $GOPATH/src/github.com/keitaro1020/datastore-tools
make
make install

Or download binaries from the releases page(Linux/Windows/macOS).

Using the tools

  • select
Usage:
  datastore-tools select [flags]

Flags:
  -p, --project string     datastore project id [required]
  -k, --kind string        datastore kind [required]
  -n, --namespace string   datastore namespace
  -f, --key-file string    gcp service account JSON key file
  -t, --table              output table view
  -c, --count              count only
  -w, --filter string      filter query (Property=Value)
  • truncate
Usage:
  datastore-tools truncate [flags]

Flags:
  -p, --project string     datastore project id [required]
  -k, --kind string        datastore kind [required]
  -n, --namespace string   datastore namespace
  -f, --key-file string    gcp service account JSON key file
  • update
Usage:
  datastore-tools update [flags]

Flags:
  -p, --project string     datastore project id [required]
  -k, --kind string        datastore kind [required]
  -n, --namespace string   datastore namespace
  -f, --key-file string    gcp service account JSON key file
  -w, --filter string      filter query (Property=Value)
  -s, --set string         set update value (Property=Value)

License

This project is licensed under the MIT License - see the LICENSE file for details

Inspiration

https://github.com/boiyaa/datastore-tools

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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