Skip to main content
Aug 11, 2024 2:50 PM UTC
Question

Automate logging into 1Password CLI V2

Like question in https://1password.community/discussion/121784/automate-logging-into-1password-cli, how can I do this in 1Password CLI V2? I tried the command echo "MYPASSWORD" | eval $(op signin) but it doesn't work.

My need is to be able to automate logging into my account so that I can use 1password-cli to backup all data regularly. Is there a better solution to this need?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided

4 replies

AlyciaAuthor
Aug 11, 2024 2:51 PM UTC

Like question in https://1password.community/discussion/121784/automate-logging-into-1password-cli, how can I do this in 1Password CLI V2? I tried the command echo "MYPASSWORD" | eval $(op signin) but it doesn't work.

My need is to be able to automate logging into my account so that I can use 1password-cli to backup all data regularly. Is there a better solution to this need?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided

AlyciaAuthor
Aug 11, 2024 3:19 PM UTC

Like question in https://1password.community/discussion/121784/automate-logging-into-1password-cli, how can I do this in 1Password CLI V2? I tried the command echo "MYPASSWORD" | eval $(op signin) but it doesn't work.

My need is to be able to automate logging into my account so that I can use 1password-cli to backup all data regularly. Is there a better solution to this need?

luckman212
Sep 8, 2024 2:48 PM UTC

@Alycia Did you ever get your answer on this?

AlyciaAuthor
Sep 8, 2024 3:58 PM UTC

@luckman212 try eval $(echo "PASSWORD" | op signin)