Simple commandline wrapper around zalando/go-keyring.
Download the latest binary release
for your platform or install via go get
:
$ go install github.com/martinohmann/keyring/cmd/keyring@latest
Write secret from keyring to stdout:
$ keyring get myservice myuser
Pipe secret from keyring into another command:
$ keyring get myservice myuser | cat
Store secret in keyring, read secret from stdin:
$ echo -n "supersecret" | keyring set myservice myuser
Store secret in keyring, interactive secret prompt:
$ keyring set myservice myuser
enter secret:
Delete secret from keyring:
$ keyring delete myservice myuser
The source code of keyring is released under the MIT License. See the bundled LICENSE file for details.