A very basic cli keyring tool to use accross various OS.
NAME:
keyring add - add a secret to the keyring.
USAGE:
keyring add [command options] [arguments...]
OPTIONS:
--service value The targeted service.
--user value The user to use for the targeted service.
--secret value The secret to set. (optional)
If the secret is not given in the command line, the user will be prompted for it.
Examples:
# interactive
$ keyring add --service foo --user bar
secret:
# not interactive
$ keyring add --service foo --user bar --secret baz
NAME:
keyring get - get an entry from the keyring.
USAGE:
keyring get [command options] [arguments...]
OPTIONS:
--service value The targeted service.
--user value The user to get for the targeted service.
Example:
$ keyring get --service foo --user bar ~
baz
NAME:
keyring delete - delete an entry from the keyring.
USAGE:
keyring delete [command options] [arguments...]
OPTIONS:
--service value The targeted service.
--user value The user to remove for the targeted service.
Example:
$ keyring delete --service foo --user bar ~
Binaries for the following OS and architectures are available on the release page:
- linux/arm64
- linux/arm
- linux/amd64
- darwin/arm64
- darwin/amd64
- windows/amd64
keyring.rb
is not in the official repository, you can install it from my repository with the following commands:
brew install vbouchaud/tap/keyring
Or brew tap vbouchaud/tap
and then brew install keyring
.