Environment variable interpolation

fernandocarlettifernandocarletti
Community Member
in CLI

Hello!

I have a token stored in 1password and I'm trying to have it injected into another variable that holds the URL:

export MY_TOKEN=op://foo/bar/token
export MY_URL=https://the_user:[email protected]

Even though I run it with op run, 1password cannot resolve the variable inside another, resulting in https://the_user:op://foo/bar/[email protected]. I tried using the template examples, but it seems to work only with the files.

Is there a way to achieve this string interpolation?

Thank you in advance!


1Password Version: 8.7.0
Extension Version: 2.0
OS Version: 12.4

Comments

  • CalvinHPCalvinHP
    Community Member

    I'm trying to do the same thing with no luck, is there a way?

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file