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...
Former Member
4 years agoHey,
From what I understood it seemed like the 2.4 version should have fixed this issue but now it seems like the following command just hangs,
```
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}},
)
```
seems like nothing returns from the command via stdout