Create login item with multiple URL ?
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
-
Hey, @mickael, thank you for reaching out to us!
This is currently possible only by using the
--template
flag ofop item create
.
i.e. in a Password or Login template, you can set theurls
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,
Horia0 -
@Horia.Culea_1P Yeah, it looks like it's exactly what I am looking for ! Thanks
0 -
Glad I could help, if you encounter any other problems, please do let us know! :D
0