Skip to content

🏷️ Go CLI command to store keychain credentials in clipboard

License

Notifications You must be signed in to change notification settings

davidecaruso/kcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeyChainClipboard

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:
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

License

Licensed under MIT.