Skip to main content
December 3, 2021
Question

[12] How do I obtain a totp value

  • December 3, 2021
  • 12 replies
  • 155 views

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

February 6, 2022

@"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 :)

February 7, 2022

@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!