Skip to content

A very basic cli keyring tool to use accross various OS.

License

Notifications You must be signed in to change notification settings

vbouchaud/keyring

Repository files navigation

keyring

GitHub release (latest by date) License Go Report Card

A very basic cli keyring tool to use accross various OS.

Usage

Add

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

Get

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

Delete

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                                                           ~

Distribution

Binary

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

Linux

Archlinux

AUR version

AUR version

AUR last modified

Darwin

With brew

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.