Time frame for "Create a 1Pass LOGIN ITEM from CLI with attached files/documents"

Options
RtotheK
RtotheK
Community Member

There is a post from June of 22, discussion closed. Its been 7 months...
You documentation seems to indicate it is possible, but it doesn't seem to work yet from your latest CLI release as of 24 Jan 2023


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:op item create file

Comments

  • Hi @RtotheK:

    Thanks for reaching out about this! I just checked with the team, and it appears we may have missed it in the documentation. I've flagged it so we can get it added, but in the mean time, the syntax should look something like this:

    op item create --category=login --title='My Example Item' --vault='Test' \
        --url=https://www.acme.com/login --generate-password=20,letters,digits \
        username=jane@acme.com \
        'Test Field 1=my test secret' \
        'Test Section 1.Test Field2[text]=Jane Doe' \
        'Test Section 1.Test Field3[date]=1995-02-23' \
        'My Attachment[file]=./path/to/file/'
    

    Let me know how you get on with that.

    Jack

  • RtotheK
    RtotheK
    Community Member
    Options

    Hey Jack, I've used similar invocations but I was omitting the [file]. That made the difference! Thank you!

  • Hi @RtotheK:

    Glad to hear that helped! Feel free to get in touch if there's anything else we can help you with.

    Jack

This discussion has been closed.