One password cli signin within python script run time
Hi ,
I am developing a python script to automate password updates in OP vault using OP CLI. I am facing issues while signin. i am running below code to signin without prompting password. I tried to do it by 2 ways which is mentioned below.
Approach 1:
proc = subprocess.Popen('op signin -f --account [account-name] --format json', stdin=subprocess.PIPE)
proc.communicate(input=[password])
Approach 2:
command = 'eval $(echo "[password]" | op signin --account [account-name] --format json)'
subprocess.run(command)
Can anyone give me suggestion to signin in OP vault automatically.
Thanks
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:https://1password.community/search?Search=One%20password%20cli%20signin%20within%20python%20script%20run%20time
