Forum Discussion

Anonymous's avatar
Anonymous
5 years ago

Does the cli integrate with the desktop app (like the browser extensions)?

Hi,

I'm looking for a simple way to insert passwords from the 1Password desktop application on the command line (on Linux). For example, to login to a VPN that uses a regular password and a one-time password concatenated I can use the following command that pulls the credentials from https://www.passwordstore.org/.


$ nmcli connection up myvpn passwd-file <(echo vpn.secrets.password="$(pass myvpn/pass/user@example.com)$(pass otp myvpn/otp/user@example.com)")

I would like to do something similar using 1Password. However, it seems op uses its own session state. Can I hook it up to the desktop application? Or does the desktop app has a separate command line interface?


1Password Version: 8.3.1
OS Version: Arch Linux

9 Replies

  • Anonymous's avatar
    Anonymous

    No worries, let us know if we can help with anything else!

  • Anonymous's avatar
    Anonymous

    Works beautifully - thank you so much guys!

  • Anonymous's avatar
    Anonymous

    Hi there folks, the second version of the CLI with biometric authentication via the desktop application is now live, feel free to check it out here:

    https://developer.1password.com/docs/cli/get-started

  • Anonymous's avatar
    Anonymous

    Hi is this supported now in beta? soon?

  • Anonymous's avatar
    Anonymous

    Thank you for letting us know @defreng, and agreed :)

  • Anonymous's avatar
    Anonymous

    that feature would be super awesome!

  • Anonymous's avatar
    Anonymous

    Thanks for your interest in the 1Password CLI early access!

  • Anonymous's avatar
    Anonymous

    That's great to hear! I'll ask the product team for early access. Thank you.

  • Anonymous's avatar
    Anonymous

    Hello @jcassee

    I'm a developer on the team responsible for the 1Password CLI tool.

    Hang tight, as we are actively developing the feature for system-wide authentication across the CLI and the desktop clients so that the CLI does not need to constantly be re-authenticated every 30 minutes.

    I can't tell you when exactly it will be done, but we are working on it.

    Actually, we are about to introduce an early access program soon. Although there is no guarantee that this feature would be included in the first early access version, it will be added to it once it's ready.

    If you are interested in signing up for early access before we announce it, I encourage you to email us from the support site at https://support.1password.com/contact/ and ask to speak to the product team!

    I hope this information is helpful, and if you have any other questions, I'd be happy to continue chatting with you!