Our community is getting an upgrade on July 2nd! Learn more in the FAQs →
Forum Discussion
Anonymous
4 years agoFailed to create item: invalid JSON
Hi Team,
We've been using the 1Password CLI for quite some time, but are now trying to switch to CLIv2
In doing that, we've discovered some really odd behaviour, making it impossible for us to cr...
Anonymous
4 years agoHey @DFeiler ,
Thank you for reaching out to us about your script.
Would it be possible to give it a try after wrapping all flag values in double quotes?
For example (taken from your example):
op item create --debug --title="WhileLoop" --category="login" --vault="HARDCODEDVAULTIDFORTESTING" --url="https://www.acme.com/login" --generate-password="20,letters,digits" username="mailto:[email protected]" 'Test Field 1=my test secret' --session "HARDCODEDSESSIONTOKENFORTESTING"
I will continue to investigate your issue, but please let me know if this ends up working for you.