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 agoexport specific secret value as an environment variable
Hello 1Password Community :)
I am trying to fetch and export a specific secret value as an environment variable:
what I tried: - Note that I replaced the actual gcp location with [gcp location]...
Former Member
4 years agoHey @Nadros, thank you for reaching out to us!
Quick question, before diving deeper into troubleshooting this: Have you tried the op read
command? By glancing through the thread, I think this may actually be a simpler way to achieve the same result. The syntax would be: op read op://<vault-name>/<item-name>/<field-name>
.
More documentation can be found at https://developer.1password.com/docs/cli/reference/commands/read/
Let us know if this helps you!
Looking forward to hearing from you.
Best,
Horia