Skip to main content
mickael
March 31, 2022
Question

Create login item with multiple URL ?

  • March 31, 2022
  • 3 replies
  • 256 views

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:
- https://customerurl.com
- https://customerurl.com.test.ourdomain.fr
- https://customerurl.com.docker

Is it possible ?

Thanks


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

3 replies

April 4, 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
mickaelAuthor
April 7, 2022

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

April 7, 2022

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