### [SDB](https://github.com/yemingfeng/sdb) cli
#### 启动 [sdb server](https://github.com/yemingfeng/sdb)
默认监听端口为 10000
#### 启动
##### 二进制文件启动
可以到 [Release](https://github.com/yemingfeng/sdb-cli/releases/) 页面下载对应操作系统的版本
下载后直接启动即可
```shell
./cli -server localhost:10000
```
##### shell 启动
```shell
go run ./cmd/cli/cli.go -server localhost:10000
```
#### 支持的命令列表
命令规则与 [sdb protobuf](https://github.com/yemingfeng/sdb-protobuf) 保持一致
```shell
Commands:
bfadd bfadd key values
bfcreate bfcreate key n p
bfdel bfdel key
bfexist bfexist key values
bscountrange bscountrange key start end
bscreate bscreate key size
bsdel bsdel key
bsgetrange bsgetrange key start end
bsmcount bsmcount key
bsmget bsmget key bits
bsmset bsmset key bits value
bssetrange bssetrange key start end value
clear clear the screen
del del key
exit exit the program
get get key
ghadd ghadd key id0 latitude0 longitude0 id1 latitude1 longitude1......
ghcount ghcount key
ghcreate ghcreate key precision
ghdel ghdel key
ghgetboxes ghgetboxes key latitude longitude
ghgetneighbors ghgetneighbors key latitude longitude
ghmembers ghmembers key
ghpop ghpop key ids
help display help
hlladd hlladd key values
hllcount hllcount key
hllcreate hllcreate key
hlldel hlldel key
incr incr key delta
lcount lcount key
ldel ldel key
lexist lexist key values
llpush llpush key values
lmembers lmembers key
lpop lpop key values
lrange lrange key offset limit
lrpush lrpush key values
mcount mcount key
mdel mdel key
mexist mexist key keys
mget mget keys
mmembers mmembers key
mpop mpop key keys
mpush mpush key key0 value0 key1 value1......
mset mset key0 value0 key1 value1 ......
plist plist dataType key offset limit
scount scount key
sdel sdel key
set set key value
setnx setnx key value
sexist sexist key values
smembers smembers key
spop spop key values
spush spush key values
zcount zcount key
zdel zdel key
zexist zexist key values
zmembers zmembers key
zpop zpop key values
zpush zpush key value0 score0 key1 score1......
zrange zrange key offset limit
```
#### 使用
<img alt="cli" src="https://github.com/yemingfeng/sdb-cli/raw/master/docs/cli.png" width="50%" height="50%"/>
有疑问加站长微信联系(非本文作者)