Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Anonymous
3 years ago1Password CLI: Failed to create item: invalid JSON
I'm trying to create a 1Password entry in my vault from a Symfony 4.2 (PHP 7.4) application using the Process component.
The command run from the Process component is: op item create --category='...
Anonymous
3 years agoSolved: just put $process->setPty(true);
before $process->run();
.
1Password CLI misses an option like --no-interactive
which disables input source checks, so the script has to emulate an interactive terminal running the process in PTY mode (TTY works too).