It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
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...
bamiller3
4 years agoNew Contributor
I am having a similar issue with CLIv2. When executing the following at a Powershell prompt, it works fine but when run it via a scheduled job, I get the "Failed to create item: invalid JSON" message. I have not tried using v1 and I'd rather not use an old version if I don't have to.
op item create --category="login" --title="$title" --vault="$vault" username="$user" password="$password"