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....
Former Member
4 years agoMy problem with all those solutions is, that I have just a bash script but I don't know the name of the OTP-field. I just know, there is only one and this is the one I need to use for my doings. Therefore the --fields - options does not have any use for me. In each case I would have to parse the output of op item get for an OTP field and its name to use that. But grepping for the line with totp: is also okay for me.
As long as op item get provides the raw otp value I need for my doings everything is fine for me.
But anyway if you know the field name than the raw OTP-value is probably the information of interest and not the URL were the user can retrieve somehow the value.