npm i @qgisk/kv-cli
KV has a simple cli for most commands (everything but all)
npm i -g @qgisk/kv
kv --help
kv get -h # or --help
Default settings
{
"db": {
"uri": "mongodb://localhost:27017/kv"
},
"namespace": "kv"
}
kv settings --uri <your uri: string> --namespace <namespace: string>
Supports multi word values
kv set [key] [value] --namespace <optional> --ttl [number (in ms)] <optional>
kv get [key] --namespace <optional>
kv delete [key] --namespace <optional>
kv clear --namespace <optional>
- Tests for the cli
MIT Demian