Is it possible for 1Password CLI running on WSL to connect with 1Password hosted on Windows?

Options
2»

Comments

  • dmbuil
    dmbuil
    Community Member
    Options

    Definitely a +1

  • taggartmaher
    taggartmaher
    Community Member
    Options

    I have a solution for Windows 11 WSL2!

    Please let other people know if this solution does not work for you.
    1. Open CMD and "winget install 1password-cli" or go to 1password docs and figure out how to install the WINDOWS version of 1password cli.
    2. If you installed with winget, you should be able to navigate to "C:\Users\\AppData\Local\Microsoft\WinGet\Packages\<1password_cli_package_id>\op.exe"
    3. if you did not use winget, navigate to the executable of the cli program
    4. add this to your ~/.bashrc file in wsl:
    alias op="/mnt/c/Users/........./op.exe"

    Magic!

  • RikuXan
    RikuXan
    Community Member
    Options

    +1