Skip to content

Instantly share code, notes, and snippets.

@mfyz
Last active March 12, 2020 18:22
Show Gist options
  • Save mfyz/23a2ad4ea7f25b1ca23e05844ee2abf6 to your computer and use it in GitHub Desktop.
Save mfyz/23a2ad4ea7f25b1ca23e05844ee2abf6 to your computer and use it in GitHub Desktop.
Get password from macOS keychain in command line
# First save the password in keychain as new password and give it a name
security -q find-generic-password -a __CURRENT_USERNAME__ -s __PASSWORD_NAME__ -w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment