#cli #terminal #utility #key-value #store

app safir

Key/Value store to share values between different shell sessions

12 releases (7 breaking)

0.8.1 Sep 7, 2023
0.7.1 Sep 1, 2023
0.5.0 Jun 30, 2023

#1174 in Command line utilities

Download history 20/week @ 2023-06-03 30/week @ 2023-06-10 6/week @ 2023-06-17 23/week @ 2023-06-24 34/week @ 2023-07-01 10/week @ 2023-07-08 6/week @ 2023-07-15 9/week @ 2023-07-22 1/week @ 2023-07-29 14/week @ 2023-08-05 7/week @ 2023-08-12 70/week @ 2023-08-26 54/week @ 2023-09-02 23/week @ 2023-09-09 7/week @ 2023-09-16

154 downloads per month

MIT/Apache

34KB
536 lines

Safir

Simple CLI key/value store.

Store key/value pairs in the terminal and retrieve them later for use like in different shell sessions.

Install

To install safir, run cargo install safir.

To build from source, clone the repository and run:

cargo build --release

Then move the binary to somewhere in your $PATH

Usage

When safir is run, it creates a store file in your $HOME directory ($HOME/.safirstore/safirstore.json).

Run safir --help for usage:

Key/Value store to share information between shell sessions

Usage: safir <COMMAND>

Commands:
  add       Add a value to the store with the given key
  get       Get a value from the store
  rm        Remove values from the store
  alias     Output the alias command for a key / value pair to be entered into a shell session
  export    Output the export command for a key / value pair to be entered into a shell session
  clear     Clear all keys/values from the store
  purge     Purges the .safirstore directory, removing it and its contents
  headless  Set the headless mode
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Dependencies

~10–22MB
~313K SLoC