It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
teejay87
2 years agoNew Contributor
Retrieve password and OTP in a single CLI command
I'm trying to automate a VPN connection using 1password CLI.
I managed to make it work successfully by requesting password and OTP in two steps, but this is currently requiring two separate 1passw...
jacob_o_1p
1Password Team
2 years agoHey teejay87, thanks for bringing this to our attention! It looks like this is one of the 1Password CLI's current limitation regarding flags with op item get. Our CLI development team is currently aware of this limitation and is looking into different possible ways to resolve it. I've also gone ahead and created an internal feature request regarding this to try and add a bit more weight onto it.
In the meantime, while our developers look into the limitation, you should be able to use the command op item get itemId --fields password && op item get itemId --otp to have the CLI output both secrets. Thanks again for bringing this to our attention! 😊