Skip to main content
Dec 3, 2021 8:20 AM UTC
Question

[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

Feb 6, 2022 8:19 AM UTC

@"Justin.Yoon_1P" thanks a lot, that seems to work! As a suggestion for retrieving other totp fields, maybe we could give the --otp flag an optional value with the name of the field? I feel like that kind of strays away from the --field/fields flag though, so maybe there's a better way you're already looking into :)

Feb 7, 2022 3:36 PM UTC

@rknshia good to hear that it worked!

maybe we could give the --otp flag an optional value with the name of the field?

That's awesome that you mention that, I've already brought that up with the team and we will be continuing to discuss it.

Appreciate the feedback!