OnePassword.NET Nuget package and CLI v2

Community Member

I'm new to 1Password and trying to use the OnePassword.NET Nuget package with CLI v2 in a Visual Studio C# project.

My code is as follows:

using OnePassword;


                var onePassword = new OnePasswordManager();

                var domain = "";
                var email = "[email protected]";
                var secretKey = "Key";
                var password = "Pwd";

                onePassword.AddAccount(domain, email, secretKey, password);
                onePassword.SignIn(password);* (GET ERROR HERE: No accounts configured for use with 1Password CLI -- )
        catch (Exception ex)
            _logger.LogError(ex, ex.Message);
  1. My question is how and where do I need to configure the account before I could use it with 1Password CLI.

1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Windows 10 Pro
Browser:_ Version 105.0.5195.127


Leave a Comment

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