Forum Discussion
3 Replies
- Jack_P_1P
1Password Team
Hi @RtotheK:
Glad to hear that helped! Feel free to get in touch if there's anything else we can help you with.
Jack
- Former Member
Hey Jack, I've used similar invocations but I was omitting the [file]. That made the difference! Thank you!
- Jack_P_1P
1Password Team
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