Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoTime frame for "Create a 1Pass LOGIN ITEM from CLI with attached files/documents"
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 Ja...
Jack_P_1P
1Password Team
3 years agoHi @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