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 agoHi, we are facing the same issue since the latest update (2.2.0), we are using 1password CLI as part of a CI script in javascript
Repro attached
```
import {execa} from 'execa'
const res = await execa(
'op',
[
'item',
'create',
'--category',
'Password',
'--title',
title,
'--generate-password=letters,digits,symbols,32',
'--format',
'json',
],
{env: {OP_SESSION_org: sessionId}},
)
```
The command works if I copy and paste it to a terminal window.