Command line interface to manipulate game content
nb -h
nb repo -h
nb map -h
nb repo add [ref]
nb repo add file [file.csv]
nb repo add data [ref] [key] [value]
nb repo add data file [file.csv]
nb repo get [ref]
nb repo del [ref]
nb repo del data [ref] [key]
nb map add [0,0,0] [ref]
nb map add data [0,0,0] [key [value]
nb map get [0,0,0]
nb map get data [0,0,0] [key]
nb map update [0,0,0] [ref]
nb map update data [0,0,0] [key] [value]
nb map del [0,0,0]
nb map del data [0,0,0]
nb status server
nb status storage
nb status clients
nb content pack [dir]
nb content upload [pack]
nb content download [ref]
Run hexcloud
server. The server listens to 0.0.0.0:8080 by default.
go run .\cmd\hexcloud\hexcloud.go --local=true
Test with status command:
go run nb.go status server
go install google.golang.org/protobuf/cmd/protoc-gen-go
install google.golang.org/grpc/cmd/protoc-gen-go-grpc
protoc --go_out=./internal/pkg --go-grpc_out=./internal/pkg ./api/hexagon.proto
Program flow of two of the API call (MapAdd)