kv
is a commandline tool that allows you to conveniently store key/value pairs so that you don't have to remember things.
Follow these steps to install on Windows:
- Install the .NET CLR (see https://learn.microsoft.com/en-us/dotnet/core/install/windows?tabs=net70)
- Clone this repo
- Open a Powershell command prompt and switch to the directory where the
.csproj
file is. - Run the following command:
dotnet build
. - Add the location of the compiled
kv.exe
file to yourPATH
environment variable. - Get the latest
MongoDb
image:docker run --name mongodb -d -p 27017:27017 mongo:latest
- Open a new command prompt and type
kv
. You should see the Usage screen.
kv: Shows the usage screen
kv [key]: Returns the value for the specified key, if it exists
kv [key] [value]: Stores the specified value under the specified key
kv --append (-A) [key] [value]: Appends the specified value to the specified key, delimited by a comma
kv --delete (-D) [key]: Deletes the value stored under the specified key, if it exists
kv --keys (-K): Lists all the keys in the store
kv --list (-L): Lists all the key/value pairs in the store