@qgisk/kv-cli
Install
npm i @qgisk/kv-cli
KV Cli
KV has a simple cli for most commands (everything but all)
Installation
npm i -g @qgisk/kv
Help
kv --help
For specific commands
kv get -h # or --help
Settings
Default settings
{
"db": {
"uri": "mongodb://localhost:27017/kv"
},
"namespace": "kv"
}
Updating settings
kv settings --uri <your uri: string> --namespace <namespace: string>
Setting a value
Supports multi word values
kv set [key] [value] --namespace <optional> --ttl [number (in ms)] <optional>
Getting a value
kv get [key] --namespace <optional>
Deleting a value
kv delete [key] --namespace <optional>
Clearing a namespace
kv clear --namespace <optional>
Coming soon / To do
- Tests for the cli
MIT Demian