Hello, I am just getting consfused why --otp shows "(ERROR) unknown flag: --otp" in my CMD. I use this syntax to get session token: echo [Password]|op signin [URL] [email] [SecretKey] and use the session token to get item from a vault: op get item [item] --vault [vault] --session [session] It gives perfect result in json format but otp field is kind of encoded with "TOPT_something" values and when I use op get item [item] --vault [vault] --otp --session [session] , it throws error "(ERROR) unknown flag: --otp". Any Idea ? It would be a big help.
@@postproductive We have a very old Library for login with 1Password for so may clients, It is just that some of them has opted for MFA OTP and I want to just get otp without changing much in old library. I could not get much on community and documentation for old otp syntax.
Nicely explained; thanks!
Hello, I am just getting consfused why --otp shows "(ERROR) unknown flag: --otp" in my CMD.
I use this syntax to get session token: echo [Password]|op signin [URL] [email] [SecretKey] and use the session token to get item from a vault: op get item [item] --vault [vault] --session [session] It gives perfect result in json format but otp field is kind of encoded with "TOPT_something" values and when I use op get item [item] --vault [vault] --otp --session [session] , it throws error "(ERROR) unknown flag: --otp". Any Idea ? It would be a big help.
Are you using 1Password CLI v2.0? The v2 syntax changed from earlier versions of op-cli.
@@postproductive We have a very old Library for login with 1Password for so may clients, It is just that some of them has opted for MFA OTP and I want to just get otp without changing much in old library. I could not get much on community and documentation for old otp syntax.