level-cli

0.2.2 • Public • Published

LevelDB command line interface

Inspect and alter your leveldb records with the command line.

Similar to lev

Setup

npm i -g level-cli

Usage

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 information

Example

lev keys -n 10

Troubleshooting

Some shells treat the ! symbol specifically. Thus, if you encounter sth. like that:

lev put a!foo bar

=> -bash: !foo: event not found

It means you're using history substitution which you can turn off / on using set +H / set -H.

Package Sidebar

Install

npm i level-cli

Weekly Downloads

1

Version

0.2.2

License

ISC

Unpacked Size

18.8 kB

Total Files

10

Last publish

Collaborators

  • ablay