A dotnet CLI tool for key value pair management.
You'll need the .Net 8 or .Net 10 runtime installed on your Windows machine.
Unfortunately this tool will not behave correctly under Linux or Mac OS.
kvps-cli is available from Nuget:
dotnet tool install kvps-cli -g
kvps -?
kvps set -?
Set a key's value, with optional tags:
kvps set <KEY> -v <value> -t <TAG1> -t <TAG2>
Set a key's value as secret:
kvps set <KEY> -v <value> -s
Set a key's value as public (default):
kvps set <KEY> -v <value> -p
Get help:
kvps get -?
Return the given key's value:
kvps get <KEY>
Return only the key's value without metadata, with the value masked if it's not public:
kvps get <KEY> -vo
Reveal the key's value:
kvps get <KEY> -r
Return only the key's value without metadata, with the value unmasked:
kvps get <KEY> -vo -r
Copy the value to the clipboard:
kvps get <KEY> -c
kvps del -?
Delete a given key:
kvps del <KEY>
kvps list -?
Display all keys:
kvps list
Display all keys that match any of the given tags:
kvps list -t <TAG1> -t <TAG2>
Store a key's value:
kvps set my_email_id -v joe@email.com
Later, extract the value:
$email = kvps get my_email_id -vo -r
$email
joe@email.com
Store some JSON:
kvps set json_test -v "{ myTenantId: '1234abcd' }" -p
Extract:
$j = kvps get json_test -vo -r | ConvertFrom-Json
$j.myTenantId
kvps db -?
kvps db export <FILENAME>
kvps db import <FILENAME>
Show the current database:
kvps db show
Use a different database:
kvps db set my_new_db
Switch back to the original:
kvps db set kvps