Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martinohmann/keyring
Simple commandline wrapper around zalando/go-keyring.
https://github.com/martinohmann/keyring
cli keyring
Last synced: 21 days ago
JSON representation
Simple commandline wrapper around zalando/go-keyring.
- Host: GitHub
- URL: https://github.com/martinohmann/keyring
- Owner: martinohmann
- License: mit
- Created: 2021-01-01T16:55:34.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T07:53:55.000Z (almost 2 years ago)
- Last Synced: 2024-12-05T02:08:54.973Z (3 months ago)
- Topics: cli, keyring
- Language: Go
- Homepage:
- Size: 108 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# keyring
[](https://github.com/martinohmann/keyring/actions?query=workflow%3Abuild)
[](https://codecov.io/gh/martinohmann/keyring)
[](https://goreportcard.com/report/github.com/martinohmann/keyring)
[](https://godoc.org/github.com/martinohmann/keyring)
Simple commandline wrapper around [zalando/go-keyring](https://github.com/zalando/go-keyring).
## Installation
Download the [latest binary release](https://github.com/martinohmann/keyring/releases)
for your platform or install via `go get`:```bash
$ go install github.com/martinohmann/keyring/cmd/keyring@latest
```## Usage
Write secret from keyring to stdout:
```bash
$ keyring get myservice myuser
```Pipe secret from keyring into another command:
```bash
$ keyring get myservice myuser | cat
```Store secret in keyring, read secret from stdin:
```bash
$ echo -n "supersecret" | keyring set myservice myuser
```Store secret in keyring, interactive secret prompt:
```bash
$ keyring set myservice myuserenter secret:
```Delete secret from keyring:
```bash
$ keyring delete myservice myuser
```## License
The source code of keyring is released under the MIT License. See the bundled
LICENSE file for details.