Skip to content

Instantly share code, notes, and snippets.

@leveled
Created September 7, 2021 14:48
Show Gist options
  • Save leveled/545d25ab83479dc65e903b3169886fb6 to your computer and use it in GitHub Desktop.
Save leveled/545d25ab83479dc65e903b3169886fb6 to your computer and use it in GitHub Desktop.
Adding a password to the keychain and retrieving it (macOS)
security add-generic-password -s "xxx.com" -a "[email protected]" -w 'xxx'
security find-generic-password -w -s 'xxx.com' -a '[email protected]' | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment