CLI Usage

The kvs binary exposes a Cobra-based CLI for interacting with the key-value store.

Commands

serve

Start the HTTP and gRPC servers.

$ kvs serve
$ kvs serve --http-addr :8080
$ kvs serve --grpc-addr :50051
$ kvs serve --http-addr :8080 --grpc-addr :50051
$ kvs --config config.yaml serve
FlagDescriptionDefault
--http-addrHTTP listen address:3456
--grpc-addrgRPC listen address:3457
--configPath to Viper-compatible config file

version

Print the CLI version.

$ kvs version
$ kvs -v

Available Flags

FlagDescription
--help, -hShow help for any command
-vShow version information
--configPath to config file

Further Reading