An open API service indexing awesome lists of open source software.

https://github.com/davidecaruso/kcc

🏷️ Go CLI command to store keychain credentials in clipboard
https://github.com/davidecaruso/kcc

cli cli-command clipboard go golang keychain

Last synced: about 2 months ago
JSON representation

🏷️ Go CLI command to store keychain credentials in clipboard

Awesome Lists containing this project

README

        

# **K**ey**C**hain**C**lipboard
> CLI command which stores your credentials and load passwords in clipboard when you need them

```
Store your services' credentials and load passwords in clipboard when you need them:

kcc add -s facebook.com -u [email protected]
kcc get -s facebook.com -u [email protected]

Usage:
kcc [command]

Available Commands:
add Store service credentials
del Delete service credentials
get Copy password in clipboard
help Help about any command
version Show current version

Flags:
--config string config file (default is $HOME/.kcc.yaml)
-h, --help help for kcc
-v, --verbose verbose output

Use "kcc [command] --help" for more information about a command.
```

## How it works
Credentials are saved in a file with `root` permissions so you must enter your system password.
Passwords are copied in clipboard when you need them.

## Custom storage file
Default storage file is located in `$HOME/.kcc.storage`, but if you want to customize it you have to follow these steps:
- create a config file – default is `$HOME/.kcc.yaml`
- set the *storage* key in the yaml file with an absolute path to the storage file as value. Example:
```yaml
storage: /absolute/path/to/storage/file
```
- if config file location is not equal to the default, run `kcc` with the ` --config /path/to/config.yaml ` flag

## Author
[Davide Caruso](https://about.me/davidecaruso)

## License
Licensed under [MIT](LICENSE).