0.2.2 • Published 7 years ago
level-cli v0.2.2
LevelDB command line interface
Inspect and alter your leveldb records with the command line.
Similar to lev
Setup
npm i -g level-cliUsage
Usage: lev [command] [options]
Commands: Alias:
keys k
values v
list l
get <key> g
put <key> <value> p
del <key> d
Options:
-V, --version output the version number
-p, --path <path> Path to leveldb (default: . )
-n, --limit <limit> Stop reading after "limit" entries
-f, --from <from> Read records starting at "from"
-t, --to <to> Read records until "to"
-r, --reverse Reverse order
-k, --keyEncoding <encoding> key encoding [utf8, ascii, json, hex] (default: utf8)
-v, --valueEncoding <encoding> value encoding [utf8, ascii, json, hex] (default: utf8)
-h, --help output usage informationExample
lev keys -n 10Troubleshooting
Some shells treat the ! symbol specifically.
Thus, if you encounter sth. like that:
lev put a!foo bar
=> -bash: !foo: event not foundIt means you're using history substitution
which you can turn off / on using set +H / set -H.