Command-line interface for the Rubin library.
You can install the Rubin CLI using cargo
:
bash
cargo install rubin-cli
The Rubin CLI offers two options:
Creating a Rubin server which offers in-memory storage for key-value pairs (see here)
A CLI for interacting with a running Rubin server
```bash Start a Rubin server on a given address / port
Usage: rubin server [OPTIONS]
Options: -a, --address
Server address to use [default: 127.0.0.1] -p, --port```bash Start the CLI to interact with a Rubin server on a given address / port
Usage: rubin cli [OPTIONS]
Options: -a, --address
Server address to use [default: 127.0.0.1] -p, --portset [KEY] [VALUE]
: Adds a string value with a given key to the storeget [KEY]
: Gets a string value from the store with a given keyrm [KEY]
: Removes a string value from the store with the given keyclr
: Clears all values in the string store, removing the keys as welldump
: Dump the store out to the server's disk. Folder needs to exist.exit
: Quit the CLI