How to create a login item with 2 urls

Maciejf85
Maciejf85
Community Member
edited May 2023 in CLI

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

Comments

  • 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

  • Maciejf85
    Maciejf85
    Community Member

    @Jack.P_1P
    Hi, just checked, works perfectly thanks a lot :)

    Maciej

This discussion has been closed.