Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
4 years ago[12] How do I obtain a totp value
Hello everyone,
I have a script which obtains a TOTP - value like that:
op get totp "my item name"
How do I do this with op2?
Best regards,
Micha
1Password Version: 2.0.0-beta....
ramblingpolak
4 years agoOccasional Contributor
I'll I liked the simplicity of the get totp
command but am currently using op item get <item> --field type=otp --format json | jq -r .totp
as per the 2.0 Upgrade guide (note --format json
which is required but not mentioned in the upgrade guide)