Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
3 years agoCLI still has a bug when running "op create" programmatically
I am running "op create" programmatically and I get an error saying
[ERROR] 2023/12/06 11:47:57 invalid JSON in piped input
This was reported before https://1password.community/discussion/1289...
Former Member
2 years agoI am experiencing this as well. It happens when my bash script is accepting input from stdin.
Workaround is to close stdin, e.g.:
```
!/bin/bash
0<&- # Close stdin when done with it
op item create --category=login </dev/null
```
or more simply:
```
!/bin/bash
op item create --category=login </dev/null
```