Environment variable interpolation

Community Member
in CLI


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


  • CalvinHPCalvinHP
    Community Member

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

Leave a Comment

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