REMINDER: the community will be in read-only mode from tomorrow until July 2nd. This is part of our platform upgrade! Learn more in the FAQs →
Forum Discussion
Anonymous
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.6
Extension Version: Not Provided
OS Version: Not Provided
12 Replies
- Anonymous
Hello Simon,
now I need to do some grep- and cut - tricks to obtain the OTP in my bash script, but yeah, works fine.
Thanks,
Micha - 1P_Simon
1Password Team
Hello Micha,
TOTP codes are now included in the item response. You can get it with
op item get "my item name".Does this work for your use case?