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 agohow to add "SecureNote" type and preserve the newlines in the data
I am using: "op item create --template xyz.json --format json" command to upload a file that has three sections (id, label, value, ...). The create works however I am unable to use data (in the "valu...
Former Member
3 years agoHey @PXG743 , just to confirm my understanding, is it correct that your issue is the inability of op
to parse the template file (i.e. to interpret the special characters)?
If so, a workaround for this would be to pipe the file into the command, and to parse it manually, such as:
(echo "cat<<EOF" ; cat item.json ; echo "EOF" ) | $SHELL | op item create
Let me know if this serves your use-case. Looking forward to hearing from you!
Best,
Horia