Skip to main content
Oct 18, 2021 10:25 AM UTC
Question

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

Oct 19, 2021 9:54 PM UTC

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!

Oct 20, 2021 10:18 AM UTC

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

Oct 25, 2021 8:33 PM UTC

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

Nov 23, 2021 1:25 PM UTC

that feature would be super awesome!

Nov 24, 2021 7:13 AM UTC

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

Feb 28, 2022 1:29 PM UTC

Hi is this supported now in beta? soon?

Mar 18, 2022 8:19 PM UTC

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

Mar 20, 2022 3:13 PM UTC

Works beautifully - thank you so much guys!

Apr 5, 2022 12:51 PM UTC

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