Skip to main content
March 20, 2023
Question

How to create a login item with 2 urls

  • March 20, 2023
  • 2 replies
  • 224 views

Hi, how do I pass 2 arguments --url or "website[url]..." so that both appear in the created item. I tried in different ways, it is possible to get this effect from the 1password application on macos, but I don't know how to do it using the CLI.

I saw this post https://1password.community/discussion/128443/create-login-item-with-multiple-url but for me the answer is unclear and I still don't know how to send more than 1 url to the created item

the effect I would like to achieve using the CLI:


1Password Version: 8.10.3
Extension Version: 2.8.1
OS Version: ventura 13.2.1
Browser:_ Not Provided

2 replies

Jack_P_1P
1Password Employee
1Password Employee
March 24, 2023

Hi @Maciejf85:

The 1Password CLI beta releases has the --autofill-urls flag, which you can use to add multiple URLs to an item. Here's an example of how you might use it:

op item create [...] --autofill-urls "https://example.com,website2=https://example.net,website3=https://example.org"

Let me know how you get on with that!

Jack

March 25, 2023

@Jack_P_1P
Hi, just checked, works perfectly thanks a lot :)

Maciej