Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.55 KB

README.md

File metadata and controls

57 lines (38 loc) · 1.55 KB

keyring

Build Status codecov Go Report Card GoDoc GitHub

Simple commandline wrapper around zalando/go-keyring.

Installation

Download the latest binary release for your platform or install via go get:

$ go install github.com/martinohmann/keyring/cmd/keyring@latest

Usage

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

License

The source code of keyring is released under the MIT License. See the bundled LICENSE file for details.