Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years agoIs it possible to inject a OTP into a config file?
I've set up a config file template as described here: https://developer.1password.com/docs/cli/secrets-config-files
Everything is working great, except for the OTP. The reference ( op://<vault>/<i...
andi_t_1P
1Password Team
3 years agoHi @nate886 , the answer to your question is that, currently, there is no way in which you could retrieve the totp value of a one time password using secret references. You could only achieve that using op item get <uuid> --otp
. That being said, I just filed an internal feature request for making this possible with secret references well, with op read
or op inject
more specifically.
All the best,
Andi