Forum Discussion

Former Member's avatar
Former Member
3 years ago

op inject with URLs

Assume for a second you have a login item with a username, password, and website, which you'd like to "inject" into a docker-compose file. How would you reference the website (aka URL)? Looking at the output of

op item get id1234567890 --vault "MyVault" --format=json

I notice that username and password have a "reference" but urls do not.

Using 2.17.0 of the 1Password CLI.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: macOS 13.4
Browser:_ Not Provided

2 Replies

  • Woo's avatar
    Woo
    New Contributor

    Have same issue.
    There is no documented way to reference `website` url using secret reference till today.
    Hopefully I'm wrong...?

  • Former Member's avatar
    Former Member

    Hi @bloudraak,

    You should be able to just replace the field in the reference with website. ie. op://Private/item/website instead of op://Private/item/username. I'll look into whether it makes sense to have that reference field for more fields in an item.

    Let me know if this works for you!
    Amanda