Skip to content

Simple commandline wrapper around zalando/go-keyring.

License

Notifications You must be signed in to change notification settings

martinohmann/keyring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.