Create login item with multiple URL ?

mickael
mickael
Community Member
edited March 2022 in CLI

Hi,

Is it possible with the new 2.0 CLI to create an entry related to multiple URLS ?

We use op cli in our bootstrapping project tool to create credentials on customer websites. We use different TLD for the same website to access a specific environment:

  • .docker: for local development
  • .test.ourdomain.fr: for testing/staging

So I would like to create a single login entry with the following URLS:

Is it possible ?

Thanks


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided

Comments

  • Horia.Culea_1P
    edited April 2022

    Hey, @mickael, thank you for reaching out to us!

    This is currently possible only by using the --template flag of op item create.
    i.e. in a Password or Login template, you can set the urls field to an array of multiple entries, as such:

    "urls": [
        {
          "label": "label1",
          "primary": true,
          "href": "url1"
        },
        {
          "label": "label2",
          "href": "url2"
        },
        {
          "label": "label3",
          "href": "url3"
        }
      ]
    

    Let me know if this helps you.
    Also, we're currently working on a more native integration for CRUD operations with URLs, so stay tuned! I'll drop a comment in this thread once we release it.

    Best,
    Horia

  • mickael
    mickael
    Community Member

    @Horia.Culea_1P Yeah, it looks like it's exactly what I am looking for ! Thanks

  • Glad I could help, if you encounter any other problems, please do let us know! :D

This discussion has been closed.