CLI - non-interactive signin



Would it be possible to implement non-interactive signin in CLI?

Currently I use expect to handle signin process as I can't pass both secret and master pass at the same time. I'm getting prompted. This works OK but still I wouldn't mind dropping expect and use just op command itself.

Any hope for implementing this feature?

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


  • ag_yaronag_yaron

    Team Member
    edited August 10

    Hey @keram ,

    You can pass your Master Password into the op signin command: echo 'masterPassword' | op signin [email protected] 'secret-key'

    You can also automate this in a script by making the masterPassword part a variable and then echoing that variable, however it would require you to store your Master Password and Secret Key in plain text on the hard drive, which is a security vulnerability and should be thoroughly considered.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file