Skip to content

Instantly share code, notes, and snippets.



Created Jul 18, 2019
What would you like to do?
get TOTP using 1Password #shell
# This uses the 1Passowrd CLI -
# taken from
# this is a command to get a TOTP, (MFA token)
op get item <item_uuid_or_name> | jq '.details.sections[1].fields[0].v' | awk -F'[=&]' '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment