op inject with URLs

bloudraak
bloudraak
Community Member

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

Comments

  • 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

This discussion has been closed.