Most efficient way to see if a user is currently logged in

Options
AustinGray
AustinGray
Community Member

Hello, I am using the cli in several scripts and I am checking if the user is logged in by running op list items but it's a pretty bulky request. I'm curious what the most efficient/fastest command would be to verify that the user is logged in? Thank you.


1Password Version: CLI 0.4.1
Extension Version: Not Provided
OS Version: macOS 10.13.4
Sync Type: Not Provided

Comments

  • cohix
    cohix
    1Password Alumni
    Options

    @AustinGray The fastest one there would be to use op get account :)

  • AustinGray
    AustinGray
    Community Member
    Options

    that's great, thank you

  • AGAlumB
    AGAlumB
    1Password Alumni
    Options

    Glad cohix was able to help. We're here if you have any other questions! :)

This discussion has been closed.