Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
2 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
```