Skip to content
/ passkc Public

A command-line interface (CLI) tool for storing and retrieving username-password information from the Keychain on macOS

License

Notifications You must be signed in to change notification settings

e6a5/passkc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

passkc

passkc is a command-line interface (CLI) tool for storing and retrieving username-password information from the Keychain on macOS. It provides a convenient way to securely manage and access credentials for various domains.

Installation

  brew install e6a5/tap/passkc

Usage

passkc supports the following commands:

  • Show: Show list of labels.
  passkc show
  • Set: Store a username for a domain in the Keychain.
  passkc set <domain> <username>
  • Get: Retrieve the stored username for a domain from the Keychain.
passkc get <domain>
  • Modify: Update the username for a domain in the Keychain (optional: include a new username).
passkc modify <domain> <new_username>
  • Remove: Remove a domain and its associated credentials from the Keychain.
passkc remove <domain>

Make sure to replace <domain> and <username> with the specific domain and username you want to store, retrieve, modify, or remove in the Keychain.

Examples

# set new domain's information
> passkc set google.com e6a5
Enter password: 
Saved successfully 

# retrieve data 
>passkc get google.com
Copied password for account <e6a5> in service <google.com> to clipboard.

# modify information
> passkc modify google.com tranhiep
Enter password: 
Updated successfully

# remove domain's information
> passkc remove google.com
Removed successfully

# show list of labels
> passkc show
List of labels:
com.passkc.google.com.e6a5 #<app_prefix>.<domain>.<username>

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A command-line interface (CLI) tool for storing and retrieving username-password information from the Keychain on macOS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages